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

Improvements #148

Merged
merged 6 commits into from
Dec 2, 2019
Merged

Improvements #148

merged 6 commits into from
Dec 2, 2019

Conversation

shuding
Copy link
Member

@shuding shuding commented Nov 26, 2019

  • fix the case that the args array is empty:
    useSWR([]) shouldn't fetch
  • fix hashing primitive types:
    useSWR([null])useSWR(["null"])
  • add a Prefetching Data section to the readme
  • fix data is always undefined first, even when cached #144 and remove useHydration, cause we don't have to worry about mismatching for now (currently there's no persistent cache like local storage or indexedDB. So in both SSR, Suspense and normal prerender + CSR, the hydration result will always match the rendered template).

@pacocoursey pacocoursey merged commit 658e3b5 into master Dec 2, 2019
@pacocoursey pacocoursey deleted the bug-fixes branch December 2, 2019 22:19
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.

data is always undefined first, even when cached
2 participants