You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.
But looking through the code of the roc-package-web-app-react package, I cannot find a place where I could apply the store enhancer. The store is created within the package itself and the method that creates it does not seem to allow passing in store enhancers.
Am i missing something? Is it possible to enhance the store (assuming I am using the roc-package-web-app-react package)?
Do you perhaps have any other advice on how I could achieve my goal?
Will be grateful for some feedback on this.
The text was updated successfully, but these errors were encountered:
You are correct in that it's not possible today to add additional store enhancer and this is something we really would like to support. With that said I think we unfortunatly are a bit off until we will be able to support this, but PRs are very welcome!
In the mean time, if not a PR solves this, you can take over ownership over the store and implement it in your own project. You would basically then copy the create-store.js along with the default code. By then setting the client and the server entry point manually you will be able to build your application.
Do you think one of these approaches will work for you?
@aeldaly I have now updated the links in the comment so they work now. And yes, this is still the recommended method since we have yet decided on a general pattern to do this. 🙂
I happy to help if there is any problems or if something is unclear.
Hi Gustav and Andreas!
I was wondering if you could help me figure this out:
My goal is to save parts of the store in localStorage, specifically information about the user.
To achieve this I wanted to use a store enhancer like the one here: https://github.com/elgerlambert/redux-localstorage
But looking through the code of the
roc-package-web-app-react
package, I cannot find a place where I could apply the store enhancer. The store is created within the package itself and the method that creates it does not seem to allow passing in store enhancers.Am i missing something? Is it possible to enhance the store (assuming I am using the
roc-package-web-app-react
package)?Do you perhaps have any other advice on how I could achieve my goal?
Will be grateful for some feedback on this.
The text was updated successfully, but these errors were encountered: