Skip to content

Commit

Permalink
TASK: Remove @neos/neos-ui/System/BOOT redux action + dispatch
Browse files Browse the repository at this point in the history
This action used to be fired before all asynchronous operations at the
beginning of the boot process.

Since there's not a single subscriber within the UI code base that
listens to that action, it has now been removed.
  • Loading branch information
grebaldi committed Jan 22, 2024
1 parent 218a42c commit e092605
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions packages/neos-ui-redux-store/src/System/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {actionTypes, actions, reducer, defaultState, selectors} from './index';

test(`should export actionTypes`, () => {
expect(actionTypes).not.toBe(undefined);
expect(typeof (actionTypes.BOOT)).toBe('string');
expect(typeof (actionTypes.INIT)).toBe('string');
expect(typeof (actionTypes.READY)).toBe('string');
expect(typeof (actionTypes.AUTHENTICATION_TIMEOUT)).toBe('string');
Expand All @@ -11,13 +10,11 @@ test(`should export actionTypes`, () => {

test(`should export action creators`, () => {
expect(actions).not.toBe(undefined);
expect(typeof (actions.boot)).toBe('function');
expect(typeof (actions.init)).toBe('function');
expect(typeof (actions.ready)).toBe('function');
expect(typeof (actions.authenticationTimeout)).toBe('function');
expect(typeof (actions.reauthenticationSucceeded)).toBe('function');

expect(typeof (actions.boot().type)).toBe('string');
expect(typeof (actions.init().type)).toBe('string');
expect(typeof (actions.ready().type)).toBe('string');
expect(typeof (actions.authenticationTimeout().type)).toBe('string');
Expand Down
2 changes: 0 additions & 2 deletions packages/neos-ui-redux-store/src/System/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const defaultState: State = {
// Export the action types
//
export enum actionTypes {
BOOT = '@neos/neos-ui/System/BOOT',
INIT = '@neos/neos-ui/System/INIT',
READY = '@neos/neos-ui/System/READY',
AUTHENTICATION_TIMEOUT = '@neos/neos-ui/System/AUTHENTICATION_TIMEOUT',
Expand All @@ -38,7 +37,6 @@ export enum actionTypes {
// Export the actions
//
export const actions = {
boot: () => createAction(actionTypes.BOOT),
init: (state: GlobalState) => createAction(actionTypes.INIT, state),
ready: () => createAction(actionTypes.READY),
authenticationTimeout: () => createAction(actionTypes.AUTHENTICATION_TIMEOUT),
Expand Down
2 changes: 0 additions & 2 deletions packages/neos-ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ async function main() {
initializeReduxState();
initializeFetchWithErrorHandling();

store.dispatch(actions.System.boot());

await Promise.all([
loadNodeTypesSchema(),
loadTranslations(),
Expand Down

0 comments on commit e092605

Please sign in to comment.