Frontity release: Improve lazy loading in Frontity

New features

  • Reimplementation of useInView hook as a wrapper for react-intersection-observer that checks if IntersectionObserver is supported by the browser.

  • Implements useConnect() and adds options object { injectProps: boolean } to connect() .

  • Add a --publicPath option to build and dev commands and pass it to webpack builds.

Enhancements

Bug fixes

  • Html2react script processor does not work with script type=module. #436
  • actions.source.fetch should populate link, route, page and query even if data exists. #365
  • actions.source.fetch with “force: true” doesn’t work as expected. #340
  • Head Tags plugin fails when HTML of <head> is malformed. #27

Packages Changelog


@frontity/hooks@2.0.0

Major Changes

  • 8a0bb8f0 #413 Thanks @orballo! - Reimplementation of useInView hook as a wrapper for react-intersection-observer that checks if IntersectionObserver is supported by the browser.

Patch Changes


@frontity/connect@1.1.0

Minor Changes

  • 996865a2 #404 Thanks @orballo! - Implements useConnect() and adds options object { injectProps: boolean } to connect().

@frontity/core@1.6.1

Minor Changes

  • 661ac083 #420 Thanks @DAreRodz! - Add a --publicPath option to build and dev commands and pass it to webpack builds.

Patch Changes


frontity@1.7.0

Minor Changes

  • 661ac083 #420 Thanks @DAreRodz! - Add a --publicPath option to build and dev commands and pass it to webpack builds.

Patch Changes


@frontity/twentytwenty-theme@1.2.0

Minor Changes

Patch Changes


@frontity/components@1.3.2

Patch Changes


@frontity/head-tags@1.0.3

Patch Changes


@frontity/html2react@1.3.3

Patch Changes


@frontity/source@1.2.1

Patch Changes


@frontity/wp-source@1.7.1

Patch Changes

  • 1c247126 #389 Thanks @michalczaplinski! - Bugfixes:

    • When using actions.source.fetch("/some-link", { force: true }), the data object property isReady should never be reset to false.
    • The data object custom properties (like items, isCategory…) should not be removed from the data.
    • The entities I get from the new fetch should overwrite the old ones.
    • When calling actions.source.fetch, it should populate data with link, route, page and query, even if data already exists.
  • 75343be3 #433 Thanks @SantosGuillamot! - Change urls to point to test.frontity.org instead of test.frontity.io.

  • Updated dependencies [996865a2, 661ac083, 75343be3]:


Plugins Changelog


frontity-headtags@1.1.4

Patch Changes

  • 0c39e5b #34 - Remove warning messages from REST API responses when head’s HTML code is malformed
1 Like