Code splitting of configureStore #4075
Answered
by
EskiMojo14
gajraj-gan
asked this question in
Q&A
-
I have seen that rtk 2.0 as been released, we currently use configureStore along with createSlice, is there way to use split the slice into different bundles now? Most of the slices are only used in some specific part of the application and need not be in the main chunk. Thank you !! |
Beta Was this translation helpful? Give feedback.
Answered by
EskiMojo14
Jan 13, 2024
Replies: 1 comment 1 reply
-
In RTK 2.0 we added Currently only the API reference page exists but I'm in the process of putting together a full example and adding it to the code splitting page. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gajraj-gan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In RTK 2.0 we added
combineSlices
which is designed to allow for lazy reducer injection.Currently only the API reference page exists but I'm in the process of putting together a full example and adding it to the code splitting page.