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
Hello :)
Is there any plans to let us pass the progression percentage of the current fetch operation to useSWR?
useSWR
Maybe something like
useSWR( '/big-dataset', (emitProgress) => /* fetch & call emitProgress when new data is loaded */, { trackProgress: true }, );
This would allow us to use determinate progress indicators :)
Thanks!
The text was updated successfully, but these errors were encountered:
Why not handling that inside fetcher? 😄
const [progress, emitProgress] = useState(0) useSWR('/big-dataset', url => fetch(url, emitProgress))
Or you can build your own abstraction around that (like a custom hook useSWRWithProgress).
useSWRWithProgress
I think one of the most important feature of SWR is tiny, but highly flexible (isolated from the actual fetch handler).
Related to #129.
Sorry, something went wrong.
That solution works for me, thanks :)
No branches or pull requests
Hello :)
Is there any plans to let us pass the progression percentage of the current fetch operation to
useSWR
?Maybe something like
This would allow us to use determinate progress indicators :)
Thanks!
The text was updated successfully, but these errors were encountered: