No way for children to depend on route parameters of ancestors
TehShrike opened this issue · comments
If a parent state has a route with a non-querystring-parameter (e.g. /parent/:importantId
), there is no way for child states to indicate that they depend on that parameter. The querystringParameters
array is only used to check actual querystring parameters - there's no way for the child to indicate that it needs to reset when importantId
changes.
This may not actually be an issue. I'll have to check the algorithm, but I may already assume that if a parent needs to be reset that all the descendants also need to be reset.
Yup, if any parent is reset, all its children will necessarily be reset or recreated: https://github.com/TehShrike/abstract-state-router/blob/master/lib/state-change-logic.js#L18