Is there a way to have code splitting with createReducer, createActions, createSlice? #2587
marcusjwhelan
started this conversation in
General
Replies: 1 comment
-
Yes, we cover this in the core docs: https://redux.js.org/usage/code-splitting Also, while it's not anything official, there's a discussion about using Suspense to help with the process of loading a reducer for a given component subtree and making sure it doesn't render until that data is available: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Our application is pretty large and we use a lot of redux toolkit tools but would like to make sure that the first load doesn't load all reducers, actions, and slices which is actually a lot of code. It would be preferable that certain routes load certain slices.
And possibly Reducers/Actions once they are needed.
Beta Was this translation helpful? Give feedback.
All reactions