add on-changed lifecycle attribute to route component #2991
Closed
DenisMonnerat
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @DenisMonnerat thank you for your input. The new version 9.2.0 of the Riot.js route adds the new |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to add a lifecycle attribute "on-changed" to the route component ? It's useful when we have to update a child component with data depending asynchronously on an url parameter of the route. For example :
First time route is mounted (/user/4) , it's ok with attribute on-mounted. But if url changes to /user/5, how can we get new data and update user ?
Am i missing an obvious solution ?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions