Skip to content

React Hooks

Compare
Choose a tag to compare
@KevinAst KevinAst released this 10 May 12:54
· 26 commits to next6 since this release

Full DocsGitHub ReleaseGitHub ContentDiff

NOTE: This release is a non-breaking change (i.e. no prior API was impacted). A major V2 version bump strictly reflects the significance of this hooks enhancement.

  1. Added: The useFassets() function has been added in support of React Hooks, providing functional component access to the Fassets object. This is an alternative to accessing fassets through Higher Order Components (using: withFassets()).

    This greatly simplifies the UI implementation, and can be seen in action in the eatery-nod-w project (see the React Hooks section).

  2. Fixed: React Component validation has been shored up by using the react-is package.

    This impacts components passed to the withFassets() API, and the fassetValidations.comp validation utility.

    Background: As of react-redux V7, connect() returns a React.memo() component type, which is an object and NOT a function ... breaking feature-u's prior component validation.

  3. Docs: Documentation improvements include:

    • Improved the concepts and feature-segregation diagrams.

    • Added a fundamental artifacts introduction to the Benefits chapter.

  4. Internal: Docs generation now uses the formal folding-menu gitbook plugin