Frontity release: Infinite Scroll hooks

New features

  • Infinite Scroll hooks stable version. With just a few lines of code, you can add now Infinite Scroll to your Frontity project. Thanks @orballo and @David for the implementation :tada: . Here you have a demo of how it works and how to implement it.

Enhancements

Bug fixes

:bulb: To keep Frontity and its packages updated, you can follow this guide in our documentation.


Packages Changelog


@frontity/google-analytics@2.0.0

Major Changes

Patch Changes


@frontity/core@1.11.0

Minor Changes

  • 3673a228 #687 Thanks @cristianbote! - Expose the render, template and App methods to override the built-in default with user-defined ones.

Patch Changes

  • 49c0429c #729 Thanks @cristianbote! - Downgrade webpack-dev-middleware@3.7.2 which is the last known version that was not slow.
  • d6421f08 #721 Thanks @DAreRodz! - Handle the case where the query param frontity_name is an array of strings.
  • 63effecb #725 Thanks @cristianbote! - Expose head and scripts API on frontity namespace for ease of defining custom tags for the html document.
  • 2f7169cb #720 Thanks @cristianbote! - Export CacheProvider from @frontity/core and use it to extract critical css into a custom style tag, needed for the @frontity/amp package.

@frontity/hooks@2.2.0

Minor Changes

  • 31102365 #429 Thanks @orballo and @DAreRodz for the amazing work! - Implements the brand new and long-awaited infinite scroll hooks collection, featuring useArchiveInfiniteScroll, usePostTypeInfiniteScroll and useInfiniteScroll. Feature Discussion
  • 32c03d58 #533 Thanks @orballo! - Adds isError boolean to infinite scroll hooks will be true when either the last post or the last page has failed to fetch.

Patch Changes


@frontity/router@1.3.0

Minor Changes

  • 31102365 #429 Thanks @orballo! - Implements actions.router.updateState() which takes a browser state object as an argument and executes a window.history.replaceState() with that object and the current url.

Patch Changes


@frontity/tiny-router@1.4.0

Minor Changes

  • 31102365 #429 Thanks @orballo! - Implements actions.router.updateState() which takes a browser state object as an argument and executes a window.history.replaceState() with that object and the current url.

Patch Changes


@frontity/amp@0.0.2

Patch Changes


frontity@1.14.2

Patch Changes


@frontity/types@1.7.2

Patch Changes

  • 31102365 #429 Thanks @orballo! - Fixes types for connect() with the new options parameter.
  • f7152d38 #722 Thanks @cristianbote! - Add a dedicated AMP template for the @frontity/amp package, that strips away the scripts and keeps the critical css into a custom style tag
  • 63effecb #725 Thanks @cristianbote! - Expose head and scripts API on frontity namespace for ease of defining custom tags for the html document.
  • 15e8f1d8 #720 Thanks @cristianbote! - Include the types for render, template and App.

@frontity/wp-source@1.11.2

Patch Changes

  • 7e701d57 #717 Thanks @michalczaplinski! - Update the value of link in actions.fetch if there’s an internal redirection.
  • 32c03d58 #533 Thanks @orballo! - Fix an array check by using Array.isArray instead of instanceof Array.
  • 804f19fe #686 Thanks @michalczaplinski! - Change how libraries.source.normalize|parse|stringify used inside of actions.source.fetch(). From now on, they are not imported from their module but received from the libraries parameter of actions.source.fetch.
  • Updated dependencies [7c3f0769, 49020718, 15e8f1d8, 7992fb85]:
    • frontity@1.14.2
4 Likes