-
Notifications
You must be signed in to change notification settings - Fork 23
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
live-reload with donejs breaks can-route bindings to update route #930
Comments
Thanks for including a test case! |
Hey, so I've gotten around to this. I'm a little confused. First, there is no |
I didn't do a great job of explaining my demo. After more testing, I think live-reload just breaks routing in general. Whenever a file is live-reloaded in donejs, routing seems to stop working. But here is my demo explanation anyways. Binding in my demo actually looks like this: Route.data.a
So in my demo, the line is actually child-component that gets the routeData from my-component:
I didn't mean that this shouldn't trigger a live reload, it should update the route. But After a live-reload has occurred (IE you modify a file, the file gets reloaded in the browser, routing no longer works. In my demo, the piece that updates the route is here: |
Thanks, I'll try again. |
I think this is a bug in can-route. When you change |
The underlying issue is here: canjs/can-route#153 . Will track from there. |
If I have a component that binds to route.data.propName from the app view model in donejs, live-reload will break the binding somehow and the route no longer gets updated.
https://github.com/roemhildtg/donejs-can-route-bug
Parent Component ViewModel:
Template:
In my-component viewmodel:
this.id = newValue;
This will update the
route.data.a
property tonewVal
but the route is no longer updated.The text was updated successfully, but these errors were encountered: