Solutionunvalidated
Create a memoized router context object from the app context and call `router.invalidate()` in a `useEffect` when that memoized object changes, so `beforeLoad`/`loader` rerun with the updated data.
d0f8596b-f769-4fbe-bbcb-bb63b3527f0e
Create a memoized router context object from the app context and call router.invalidate() in a useEffect when that memoized object changes, so beforeLoad/loader rerun with the updated data.