react-refetch

A simple, declarative, and composable way to fetch data for React components

OTHER License

Downloads
21.3K
Stars
3.4K
Committers
67

Bot releases are visible (Hide)

react-refetch - v5.0.0-0 Latest Release

Published by mble-sfdc 5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/heroku/react-refetch/compare/v4.0.1-0...v5.0.0-0

react-refetch -

Published by ryanbrainard over 4 years ago

  • Merge pull request #244 from Kiikurage/improve-type 313cadd
  • Improve type definition to use optional chaining 959a03a
react-refetch -

Published by ryanbrainard almost 5 years ago

TypeScript improvements:

Breaking change for TypeScript users only

react-refetch -

Published by ryanbrainard almost 5 years ago

To support newer versions of React, this removes the use of deprecated React lifecycle hooks componentWillMount and componentWillReceiveProps, deprecated React Context API, and impure functions.

This is a breaking change from the 2.0 releases. To migrate, remove the use of the second context parameter and the pure option on any connect() functions. It generally should not impact applications, but be aware that fetches now happen on componentDidMount and componentDidUpdate.

This also updates many dependencies, which resolves security vulnerabilities.

react-refetch -

Published by ryanbrainard almost 5 years ago

Upgrades to React 16

react-refetch -

Published by ryanbrainard almost 5 years ago

Removes Webpack

react-refetch -

Published by ryanbrainard almost 5 years ago

Upgrades to Babel 7

react-refetch -

Published by ryanbrainard almost 5 years ago

  • Improves 3.0.0 documentation
  • Uprades some dependencies to fix security vulnerabilities
react-refetch -

Published by ryanbrainard about 5 years ago

To support newer versions of React, this removes use of deprecated React lifecycle hooks componentWillMount and componentWillReceiveProps, deprecated React Context API, and impure functions.

This is a breaking change from the 2.0 releases. To migrate, remove use of the second context parameter and pure option. It generally should not impact applications, but be aware that fetches now happen on componentDidMount and componentDidUpdate.

Code Change: https://github.com/heroku/react-refetch/pull/233

Additional doc changes are still pending.

react-refetch -

Published by ryanbrainard almost 6 years ago

react-refetch -

Published by ryanbrainard almost 6 years ago

react-refetch -

Published by ryanbrainard almost 6 years ago

react-refetch -

Published by ryanbrainard almost 6 years ago

react-refetch -

Published by ryanbrainard about 6 years ago

New Feature:

Optimization:

Breaking Change:

  • If value previously was a function, it will be evaluated now if comparison is different. If you need to have the function itself, wrap value in another function.
  • New invariant: 'Request object with functional value must also declare comparison.
react-refetch -

Published by ryanbrainard about 6 years ago

  • New invariant: 'Request object with functional value must also declare comparison.
  • Removed lodash dependency
react-refetch -

Published by ryanbrainard almost 7 years ago

New Feature:

Breaking Change:

  • If value previously was a function, it will be evaluated now if comparison is different. If you need to have the function itself, wrap value in another function.
react-refetch -

Published by ryanbrainard almost 7 years ago

  • Support for Request.mode
  • Upgrade dependencies
react-refetch -

Published by ryanbrainard almost 7 years ago

  • #184 Upgrade "warning" and "hoist-non-react-statics"
  • Add react 16.0 as peerDependency
  • #181: Fix refreshing using wrong props when the props change before a previous refresh has finished
react-refetch -

Published by ryanbrainard about 7 years ago

react-refetch -

Published by ryanbrainard about 7 years ago

#181: Fix refreshing using wrong props when the props change before a previous refresh has finished

Package Rankings
Top 1.45% on Npmjs.org
Badges
Extracted from project README
build status npm version npm downloads