Slice factory / Extendable slice #5100
Answered
by
EskiMojo14
michalvadak
asked this question in
Q&A
-
Hey! Is there a way to create a Slice Factory or something similar that would allow me to create a Slice with a "basic" state, reducers, and selectors, and then use it in multiple stores, each with something extra? |
Beta Was this translation helpful? Give feedback.
Answered by
EskiMojo14
Oct 9, 2025
Replies: 1 comment 5 replies
-
Yeah, it's always been possible to write higher order reducers:
What do you mean by "with something extra", specifically? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
selectors need to be a type parameter too (and chances are you'll want
name
to be too, if you're usingslice.selectors
):