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
Is this intentional? Is the idea that you should build any state in the initial page load? Or would you add an onEnter method to all your components and call browse() on any store data they require. Admittedly I'm still getting my head around how this works.
Logging the branches variable from render.js to console looks like it only ever matches on '/'.
The text was updated successfully, but these errors were encountered:
So this is actually not related to the path, onEnter does get called on the new components I added but only if I refresh the page, so it looks like this is related to the other bug "onEnter not called on client"
Update: yes, it does seem to be related to the paths. I renamed the path in src/config/routes.js from
{ path: '/', component: Home },
to
{ path: '/home', component: Home },
This appears to be what allowed to let onEnter be called on the other routes/components that I had added as maybe having a '/' route was somehow not letting them get called. Again, onEnter only gets run on the server, but that wasn't even happening on components other than the one mapped to '/' before.
Is this intentional? Is the idea that you should build any state in the initial page load? Or would you add an onEnter method to all your components and call browse() on any store data they require. Admittedly I'm still getting my head around how this works.
Logging the branches variable from render.js to console looks like it only ever matches on '/'.
The text was updated successfully, but these errors were encountered: