-
Notifications
You must be signed in to change notification settings - Fork 918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stock-market refresh produce error stock undefined. #315
Comments
Seems like you're right, thanks for letting us know! |
@cloudstr21 @timdeschryver this only happens if navigating / refreshing directly on the |
Sure. I will make it as soon as I found the solutions. |
Awesome, let us know if we can help in any way possible. |
I just create the pull request, please take a review. |
this is strange, select data from ngrx/store is always undefined after page is refreshing. @timdeschryver |
I'll take a look at it later today. |
The problem lies with the
But when we init our app via
|
To fix this we have two choices:
|
I forgot to mention, that I would vote to rename |
That's it. you are great @timdeschryver . I just fix it as your suggestions. now it run perfectly in my local. Should i re-commit it? |
@timdeschryver @cloudstr21 ah god! Sorry for this, I forgot about the relation between the local storage key and the state key. It was implemented really loooong time a ago... Great catch! We can maybe think about documenting it or reworking it so that the state key is used automatically and doesn't have to be defined twice :) |
@cloudstr21 Ofcourse you can re-commit it 👍 @tomastrajan No problem 😄 we could perhaps rework it as you mentioned or we could use ngrx-local-storage, which is a popular library that would do this for you. I haven't used it before tho. We can open up a new issue for this. |
Hi there,
I founded an issue when i open examples page => stock-market sub page.
How to reproduce the issue?
Thanks
The text was updated successfully, but these errors were encountered: