We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useTransition
useTransition is the hook that allows for non flashy UI transitions.
Currently facebook/react#17199 means it's impossible to detect during render whether a component has a useTransition, and whether or not it's pending.
pending
Somehow we need to signal to the gqless react binding not to throw a promise (both hook & HoC), when it's pending, AKA:
const { something } = useQuery(); const [startTransition, isPending] = unstable_useTransition({ timeoutMs: 3000 }); if (isPending) { doNotThrowPromiseAndJustRenderWithOldData() }
This should uphold the concurrent mode guarantees, at least for loading states.
ways I can think of to do this:
import("@gqless/react").enableTransitions()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
useTransition is the hook that allows for non flashy UI transitions.
Currently facebook/react#17199 means it's impossible to detect during render whether a component has a
useTransition
, and whether or not it'spending
.Somehow we need to signal to the gqless react binding not to throw a promise (both hook & HoC), when it's pending, AKA:
This should uphold the concurrent mode guarantees, at least for loading states.
ways I can think of to do this:
useTransition
useTransition
and inserts logic to check for the pending stateimport("@gqless/react").enableTransitions()
(would be graceful)The text was updated successfully, but these errors were encountered: