Vue Composition API - Create Composable wrapper #4540
Unanswered
zdenkolini
asked this question in
Q&A
Replies: 1 comment 8 replies
-
The fact that the TanStack composables detect if they are run inside a setup hook and throw an error if they aren't, is a show stopper for us. It means we are forced to repeat the logic for query invalidation after a mutation (for example) in all components that use that particular mutation. In a project with 50+ components and a bigger development team, it will be impossible to keep the overview of which queries have been written and how they are cached. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to find an example/solution to creating a reusable composable (custom hook in React terminology) for my application.
Composable documentation:
https://vuejs.org/guide/reusability/composables.html
Beta Was this translation helpful? Give feedback.
All reactions