lazy load certain state #107
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MichaelContento/redux-storage#107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have some arrays in my state that I don't need at app start right away. I'd rather load them when I first need to display them. Does redux-storage support that?
Yes, this is possible although there is no official support for splitting the state. Just have a look at this example gist.
The current solution is quite simple but also rather cumbersome if you want to split the state even further. I haven't thought about this problem for very long but maybe a special engine-decorator could be a better (and reusable) solution? Maybe a API that looks something like this:
Does this answer your question? If so, please close this issue or keep on asking 😃
I will try this out. If I have more questions I will open this again. Thanks!