Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Reload model from breadcrumb? #122

Open
ryanrishi opened this issue Jul 3, 2017 · 0 comments
Open

Reload model from breadcrumb? #122

ryanrishi opened this issue Jul 3, 2017 · 0 comments

Comments

@ryanrishi
Copy link

ryanrishi commented Jul 3, 2017

Is there a way to reload a parent route's model from the breadcrumb? For example, if the current route is Home > Farms > Farm > Fields > Field > Crops and you add a new Crop, when you click on the "Field" breadcrumb, reload that Field?

The beforeModel/model/afterModel hooks won't fire because this is a nested route. One solution is to allow the dev to pass in a "reload" property that takes in true/false in the breadCrumb route property. Let me know if you want to go that route, and I'd be happy to make a PR for that.

Thanks for a great addon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant