clean fct when leaving a route
Hi,
Is there any built-in mechanism to call a fct when leaving a route?
Let's say, I want to clear some data in my redux store when leaving my page (route), how can I deal with this?
I saw a load callback yo fetch data, but no unload.
Thanks.
2 Replies
correct-apricotOP•2y ago
No one can help me?
What do you do in a swa to clean up on route changes?
Thanks
fascinating-indigo•2y ago