Created
October 23, 2024 18:09
-
-
Save merthanmerter/396c850684367dcad05bb1f29c5ee721 to your computer and use it in GitHub Desktop.
tanstack router- useAsyncNavigate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @see https://github.com/tanstack/router/discussions/2567 | |
| */ | |
| await navigate({ | |
| to: "/", | |
| invalidate: false, | |
| clearCache: { | |
| before: true, | |
| after: true, | |
| }, | |
| callback: () => { | |
| setWorkspace(res.tenant); | |
| toast.success("Active tenant changed successfully"); | |
| }, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment