Skip to content
New issue

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

First revalidate() + refetch() does not refresh data #497

Open
marvin-j97 opened this issue Nov 16, 2024 · 0 comments
Open

First revalidate() + refetch() does not refresh data #497

marvin-j97 opened this issue Nov 16, 2024 · 0 comments

Comments

@marvin-j97
Copy link
Contributor

marvin-j97 commented Nov 16, 2024

Describe the bug

When using createResource + query, and doing a revalidate(key) + refetch, the first invocation will not refresh data. After that, it works correctly.

Your Example Website or App

https://stackblitz.com/edit/solidjs-templates-spywaw?file=src%2FApp.tsx

Steps to Reproduce the Bug or Issue

Press the button, you would expect every click to update the timestamp, however the first click will not cause a refetch

To repeatedly reproduce you'll have to refresh the project in Stackblitz (or F5 when running locally).

Expected behavior

The first click also refreshes the data

Screenshots or Videos

No response

Platform

Stackblitz and Ubuntu

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant