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
https://github.com/zeit/swr#multiple-arguments and mutate()
The text was updated successfully, but these errors were encountered:
You can pass multiple arguments to mutate, if you have
useSWR(["/api/users", 1], fetcher);
You can do
mutate(["/api/users", 1]);
Sorry, something went wrong.
Any possible reason that mutate(["/api/users", 1]); is not triggering fetcher? I'm doing the same setup, but fetcher is not fired.
fetcher
I can only succesfully fire fethcer if my key stays with pure string like useSWR("/api/users", fetcher); + mutate ("/api/users").
fethcer
useSWR("/api/users", fetcher);
mutate ("/api/users")
No branches or pull requests
https://github.com/zeit/swr#multiple-arguments and mutate()
The text was updated successfully, but these errors were encountered: