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

Moving page cache to use a cache map #221

Merged
merged 2 commits into from
Jan 11, 2020

Conversation

cryptiklemur
Copy link
Contributor

@cryptiklemur cryptiklemur commented Jan 6, 2020

Currently, changing the pageKey doesn't reset the pages cache, and theres no other way to clear the pages cache.

Might solve #189

Copy link
Member

@shuding shuding left a comment

Choose a reason for hiding this comment

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

So we don't have to set pageCacheMap every time, what do you think?

src/use-swr-pages.tsx Outdated Show resolved Hide resolved
src/use-swr-pages.tsx Outdated Show resolved Hide resolved
Co-Authored-By: Shu Ding <ds303077135@gmail.com>
Copy link
Member

@shuding shuding left a comment

Choose a reason for hiding this comment

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

Thanks! @aequasi 😃

@shuding shuding merged commit 128ac70 into vercel:master Jan 11, 2020
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.

2 participants