swr

React Hooks for Data Fetching

MIT License

Downloads
9.7M
Stars
29.3K
Committers
182

Bot releases are visible (Hide)

swr -

Published by shuding almost 5 years ago

Patches

  • skip immediate revalidation when initalData is provided: #211
  • Fix #182: #207
  • Reduce re-renders by auto detecting state dependencies: #186

Credits

Huge thanks to @addstar34 and @promer94 for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Prevent polling when browser is offline: #203

Credits

Huge thanks to @daneden for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Allow newer minor versions of React as peer dependency: #181
  • Remove unneeded await statement on fetch lib: #187
  • Update local state example: 95c6775b450e6717b131dcdc9a04946cc51daa9b
  • Fix config as second parameter in use-swr: #196
  • Test: add race condition test: #195
  • Update index.js: #198
  • Improve multiple argument example in README: #201
  • Change cjs build target to ES5, csm build target to ESNext: #204

Credits

Huge thanks to @Svish, @markotom, @MSekrst, @wendellhu95, @Regaron, and @LiuuY for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Add react-native entry point: #149
  • Fix 'SSR with Next.js' code error: #152
  • Axios examples: #145
  • Fix tsconfig's "lib" property, along with small improvements to README.md: #162
  • Improvements: #148
  • Bug fixes: #165
  • Scripts on windows: #171
  • Fix race condition: #173

Credits

Huge thanks to @n3tr, @zeroslope, @Svish, and @BloodShura for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Add example on how to use fetch + mutate to prefetch data: #120
  • Remove lockfile from example and ensure they can't be sent again: #125
  • Improvements: #130
  • Add Server Side Render Example: #132
  • Improve readme: #135
  • Clarify about HTTP RFC 5861: #138
  • Check for window before using it: #142
  • Add esm build: #140
  • Add async mutation support: #134

Credits

Huge thanks to @sergiodxa, @dancerphil, and @yesmeck for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Add example sharing local state between components: #76
  • Adding initialData: #106
  • Demo: suspense demo: #105
  • Improve readme: #104
  • Remove/inline dependencies: #115
  • Replace batchedUpdates with reducer: #117
  • Use @zeit/ncc: #89

Credits

Huge thanks to @afc163, @aequasi, @pacocoursey and @wendzhue for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Add an autocomplete suggestions examples: #88
  • Improve readme: #91
  • Key interface can include null: #96
  • Use lodash/throttle instead of lodash.throttle: #102
  • Fix visibilityState type: #101
  • Improve swr pagination api: #95
  • Args as key: #98

Credits

Huge thanks to @sergiodxa, @pacocoursey, @tusbar, and @StarHyx for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Replace useLayoutEffect by useIsomorphicLayoutEffect to avoid ssr warnings: #85

Credits

Huge thanks to @bmvantunes for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Add example using SWR to sync storage between tabs: #74
  • Improve readme: #73
  • Add a README to every example: #79
  • Add One-Click Deploy button to examples: #81
  • Add @pacocoursey to CODEOWNERS: #83
  • Fix suspense bugs: #82
  • Pass pageSWRs to swrDataToOffset: #52

Credits

Huge thanks to @sergiodxa, @pacocoursey for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Improve export for IntelliSense: #56
  • Add React-Native Support: #42
  • Add @types/lodash.throttle package: #63
  • Fix error broadcasting: #67

Credits

Huge thanks to @aequasi, @n3tr, and @Go7hic for helping!

swr -

Published by shuding almost 5 years ago

Patches

  • Fix entry files: 8b849e39d98686c5b9e915095c12e235f3e56fc3
swr -

Published by shuding almost 5 years ago

Patches

  • Adding types to ConfigInterface for callbacks: #35
  • Add myself to CODEOWNERS: #38
  • Feature/basic-typescript-example: add basic-typescript example: #36
  • Add example of implementing optimistic UI with mutate: #31
  • Fix suspense hanging: #49
  • Update package name: #51
  • Pre-commit, better linting and webstorm support: #55
  • Use fast-deep-equal: #53

Credits

Huge thanks to @aequasi, @Timer, @marcelmokos, @sergiodxa, and @sztadii for helping!

swr -

Published by shuding almost 5 years ago

Initial release