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

Refetch indexeddb cached query immediately #22517

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

salazarm
Copy link
Contributor

@salazarm salazarm commented Jun 12, 2024

Summary & Motivation

Recent changes to this file regressed the immediate fetch from the server in favor of only fetching from cache. This PR adds back the fetching from the server behavior to update the cache.

How I Tested These Changes

App proxy, see requests fire in the network panel:

Screenshot 2024-06-12 at 7 51 09 PM

Copy link

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-3mmcd0jjr-elementl.vercel.app
https://salazarm-refresh-search.core-storybook.dagster-docs.io

Built with commit cbc7a83.
This pull request is being automatically deployed with vercel-action

}, [key, version, getCachedData]);

React.useEffect(() => {
fetch(true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The true argument here makes the fetch call skip the cache.

@salazarm salazarm merged commit 2d343ea into master Jun 13, 2024
2 checks passed
@salazarm salazarm deleted the salazarm/refresh-search branch June 13, 2024 00:02
salazarm added a commit that referenced this pull request Jun 13, 2024
## Summary & Motivation

Recent changes to this file regressed the immediate fetch from the
server in favor of only fetching from cache. This PR adds back the
fetching from the server behavior to update the cache.

## How I Tested These Changes

App proxy, see requests fire in the network panel:

<img width="682" alt="Screenshot 2024-06-12 at 7 51 09 PM"
src="https://github.com/dagster-io/dagster/assets/2286579/f1301542-e542-4cd8-96cd-262776671e65">
cmpadden pushed a commit that referenced this pull request Jun 13, 2024
## Summary & Motivation

Recent changes to this file regressed the immediate fetch from the
server in favor of only fetching from cache. This PR adds back the
fetching from the server behavior to update the cache.

## How I Tested These Changes

App proxy, see requests fire in the network panel:

<img width="682" alt="Screenshot 2024-06-12 at 7 51 09 PM"
src="https://github.com/dagster-io/dagster/assets/2286579/f1301542-e542-4cd8-96cd-262776671e65">
danielgafni pushed a commit to danielgafni/dagster that referenced this pull request Jun 18, 2024
## Summary & Motivation

Recent changes to this file regressed the immediate fetch from the
server in favor of only fetching from cache. This PR adds back the
fetching from the server behavior to update the cache.

## How I Tested These Changes

App proxy, see requests fire in the network panel:

<img width="682" alt="Screenshot 2024-06-12 at 7 51 09 PM"
src="https://github.com/dagster-io/dagster/assets/2286579/f1301542-e542-4cd8-96cd-262776671e65">
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

Successfully merging this pull request may close these issues.

None yet

2 participants