Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Routes being recreated on hotreload #123

Merged
merged 2 commits into from
Jun 15, 2019

Conversation

jejoivanic
Copy link
Contributor

@jejoivanic jejoivanic commented Jun 11, 2019

Fixed logic to solve the error described in issue #97.
As in every, log-in/log-out the Core component and "below" was recreated including the Resource which registers the routes on the vue-router and store, and binds the components.
So the first problem was to control the registering in Resource in case the routes and bindings already were registered.
It is really important to notice that the store and the added routes to the router were not being recreated on hotreload or log-in/log-out.
Then the UI component manages the drawer items depending in a subscription for the addRoute mutation and not checking if the triggering mutation containing the "new" routes was already added.
Untitled Diagram

…tes everytime the application is hot-reloaded or on log-in/log-out.
@sgobotta sgobotta merged commit f6f69d3 into develop Jun 15, 2019
@jejoivanic jejoivanic deleted the 97-routes-being-recreated-on-hotreload branch June 21, 2019 16:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants