ui-router / redux

UI-Router plugin for Redux integration
MIT License
12 stars 6 forks source link

Storing transition deregistration functions #11

Open czajkowski opened 4 years ago

czajkowski commented 4 years ago

https://github.com/ui-router/redux/blob/a90e709c2ed875367f694a915bc4cd84b486dcd5/core/applyHooks.ts#L69

Could you please explain why is it needed to keep all the deregistration function?

If I understand this correctly, this array (removeHooksFunctions) will gather all the deregistration functions for all transitions triggered during the router lifetime. Do we need them even after the transitions are finished?