Alex Liu
Alex Liu
I have opened a PR(#8443) to address this issue. If there are any areas where I may have overlooked something, please kindly let me know. Thank you!
This is just an idea, but I haven't had the time to verify its feasibility recently. Perhaps we only need to add a length check here: https://github.com/TanStack/query/blob/639363c769e866ad4f9f7eb87147814ec8cbcbf0/packages/vue-query/src/useBaseQuery.ts#L88-L90 ```ts if (...
I have looked into the proposed solution, and it does seem possible to detect whether the user is using the `query` parameter in the `enabled` callback to decide whether `enabled`...
@Jak-Ch-ll I've updated #9276 to make it at least possible (from a type perspective) to "return a function from the getter, and that one will provide the query". ```ts const...
Your approach was very effective. I simplified the implementation based on your solution: ```ts export class QueryClient extends QC invalidateQueries( filters: MaybeRefDeep = {}, options: MaybeRefDeep = {}, ): Promise...
https://github.com/TanStack/query/blob/14d9c49fba6715a21e62dd473c11c8454cdc51f9/packages/query-core/src/types.ts#L505-L507 https://github.com/TanStack/query/blob/14d9c49fba6715a21e62dd473c11c8454cdc51f9/packages/query-core/src/queryClient.ts#L288-L290 It seems that `refetchType` exists to determine whether `invalidateQueries` needs to perform a refetch. This approach only defers `refetchQueries` to the next micro task.
@TkDodo Thank you for your response. I am happy to address this issue and will review various operation combinations to add test cases for these scenarios.
@kazcw After reviewing the core code implementation, I realize you are correct. I will check if `refetchType` is `none` to determine whether to execute `super.refetchQueries`.
Thank you for your feedback! I’ll take some time to explore how to improve this further. I’m not sure if defining `hydrationStrategy` as a static string would provide a better...
I’ve noticed an issue: ```vue const LazyMyComponent = defineLazyHydrationComponent('time', () => import('~/components/MyComponent.vue')) ``` This causes a conflict between auto-import and macro usage: ``` Uncaught (in promise) SyntaxError: Identifier 'createLazyTimeComponent' has...