Skip to content

Commit

Permalink
fixed the error in the store of Redux
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriaMaltseva committed Dec 18, 2024
1 parent e138f03 commit 7cb84f3
Show file tree
Hide file tree
Showing 27 changed files with 1,986 additions and 2,517 deletions.
12 changes: 8 additions & 4 deletions assets/js/src/core/app/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const slices: AnySliceLike[] = [
pimcoreApi
]

export let rootReducer = combineSlices({}, ...slices).withLazyLoadedSlices<LazyloadedSlices>()
const createRootReducer = (): CombinedSliceReducer<Record<string, any>, Record<string, any>> => {
return combineSlices({}, ...slices).withLazyLoadedSlices<LazyloadedSlices>()
}

export const rootReducer = createRootReducer()

export const store = configureStore({
reducer: rootReducer,
Expand All @@ -47,10 +51,10 @@ export const store = configureStore({
export const injectSliceWithState = (newSlice: AnySliceLike): CombinedSliceReducer<Record<string, any>, Record<string, any>> => {
slices.push(newSlice)

rootReducer = combineSlices({}, ...slices).withLazyLoadedSlices<LazyloadedSlices>()
store.replaceReducer(rootReducer)
const updatedRootReducer = createRootReducer()
store.replaceReducer(updatedRootReducer)

return rootReducer
return updatedRootReducer
}

export type AppStore = typeof store
Expand Down
14 changes: 14 additions & 0 deletions public/build/2b616333-0e6b-44c9-93dd-b5f755064fbd/entrypoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"entrypoints": {
"main": {
"css": [
"http://localhost:3030/build/2b616333-0e6b-44c9-93dd-b5f755064fbd/vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-cbce9d.css",
"http://localhost:3030/build/2b616333-0e6b-44c9-93dd-b5f755064fbd/main.css"
],
"js": [
"http://localhost:3030/build/2b616333-0e6b-44c9-93dd-b5f755064fbd/vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-cbce9d.js",
"http://localhost:3030/build/2b616333-0e6b-44c9-93dd-b5f755064fbd/main.js"
]
}
}
}
1,964 changes: 1,964 additions & 0 deletions public/build/2b616333-0e6b-44c9-93dd-b5f755064fbd/manifest.json

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/880c0b8f-f3a4-4cfa-a637-3ad54b86ed09/vendor.js

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/d97b3ffd-4087-4734-966a-a0609472c25c/main.js

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/fd40ca59-c64c-4fb1-846b-2cf736e90203/105.js

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions public/build/fd40ca59-c64c-4fb1-846b-2cf736e90203/core-dll.css

This file was deleted.

2 changes: 0 additions & 2 deletions public/build/fd40ca59-c64c-4fb1-846b-2cf736e90203/core-dll.js

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions public/build/fd40ca59-c64c-4fb1-846b-2cf736e90203/entrypoints.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 7cb84f3

Please sign in to comment.