Execute query mutation in beforeLoad of tanstack router
Hi, What is best practice to execute a mutation when a seach param is added to the URL?
This is the only thing i came up with but i know we are not in favor of using useEffect for stuff like this so idealy i want to execute the mutation in the beforeLoad function but how can we achieve this?
This is the only thing i came up with but i know we are not in favor of using useEffect for stuff like this so idealy i want to execute the mutation in the beforeLoad function but how can we achieve this?