atlassian-labs / react-resource-router

Configuration driven routing solution for React SPAs that manages route matching, data fetching and progressive rendering
https://atlassian-labs.github.io/react-resource-router
Apache License 2.0
202 stars 28 forks source link

Ensure plugin load methods are called only when path/params/query change #197

Closed bobrovnik closed 1 year ago

bobrovnik commented 1 year ago

Changing when plugin.routeLoad and plugin.beforeRouteLoad is happening.

The current behavior is to load Route anytime URL changes. I'm changing it to only when Route path/params/query change.

"Resources" plugin is an exception, as it currently relies on old behavior.