React Floodgate Versions Save

Configurable and flexible "load more" component for React

v1.0.0

4 years ago

🎉 react-floodgate hits v1.0.0 🎉

Package

  • Updated react, react-dom versions so Floodgate can leverage hooks in the future (a021b5f)

Maintenance

  • Replaced instances of saveState to exportState to better and more consistently describe props' and methods' purposes (5c0b7bd, e389adc)
    • Breaking changes

Testing

  • Updated tests based on changes to the saveState methods and props (9044a70)

v0.6.1

4 years ago

Bugfix

  • Removed unnecessary Floodgate.data class property which was causing bugs in instances that accepted data loaded asynchronously from parent (#47, 329f728)

v0.6.0

4 years ago

Package

  • Updated react, react-dom versions so Floodgate can leverage the Context API (#21, #22, a49e704)

Maintenance

  • Floodgate now supports using the Context API by wrapping the render prop function in a Context.Provider (63ff574)
  • Provide FloodgateContext as named export (667345e)

v0.5.7

5 years ago

Bugfix

  • Fixed Floodgate#loadAll not updating Floodgate.state.currentIndex (#41, a4ac5b1)
  • Fixed Floodgate#reset to allow custom initial value so loading all items, then calling Floodgate.props.exportState doesn't lock component to fully-loaded items state (#40, a4ac5b1)

v0.5.6

5 years ago

Package

  • Updated package description and keywords to be more descriptive and search-optimized; released at 0.5.3 (9faf1e2)

Bugfix

  • Fixed bug where existing functionality did not allow a parent component to control Floodgate using its state in Floodgate props; released at 0.5.4 (#35, #37, 084fc5b)

Maintenance

  • Removed minified builds from Rollup config; released at 0.5.5 (#38, #39, 050f5ee)

v0.5.2

5 years ago

Bugfix

  • Added propTypes for the event callback props released in v0.5.1 (#32, #33, baa9905)

v0.5.1

5 years ago

Features

  • Added ability to export state to a parent component on componentWillUnmount via the exportState prop on a Floodgate instance (#17, f7fdb4e)
  • Added event callbacks to fire when loadNext and reset are called, and when loadComplete equals true (#27, #30, e2f5a4b)

Maintenance

  • Refactored loadNext to be more readable, mitigate chances of buggy behavior (#26, 1855ec6)