Difficulties with integrating external libraries that don't support QRL #199
shukklin
started this conversation in
External Library Ideas
Replies: 1 comment 1 reply
-
@wmertens this might be solved by |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The context:
queryFn
attribute accepts promise which is what QRL is).refetchInterval
) TanStack does not allow passing an asynchronous function, because it is not supported.Question:
What is the best way to deal with this situation, except for creating the necessary functions on the client without serializing them in QRL (for example, inside the useVisibleTask hook which looks like too hacky)?
It seems that it would be nice to solve it more optimally out of the box than to create various hacks.
Reproduction is here - https://stackblitz.com/edit/github-pqqkc67l
Steps to reproduce:
npm start
.src/routes/index.tsx
file.refetchInterval
attribute.Beta Was this translation helpful? Give feedback.
All reactions