Skip to main content

February, 2022

ยท 3 min read

Adjustments in the SearchInput reference and useStorage hook. Fixes in StoreProduct values and trailing slash from incoming requests. Also, new Performance Budgets section to the lighthouse report.

FastStore UIโ€‹

SearchInputโ€‹

  • โœจ Adjust SearchInput reference - #1153 The SearchInput component now uses imperative code for input behaviors. The useImperativeHandle hook is used to give the component control over the value that is returned by explicitly stating the return value.

FastStoreโ€‹

SDKโ€‹

  • โœจ Stable useStorage hook - #1146 The useStorage hook is now stable, meaning that if there is no value stored on the persistent storage, the hook won't trigger a re-rendering of the React API. Instead, the useStorage will use the initialValue. This behavior leads to a smaller footprint of the user's device and smaller total blocking time (TBTs).

FastStore APIโ€‹

VTEX Platformโ€‹

  • ๐Ÿ› Fix allCollections query pagination and pagetype timeout errors - #1140 The pagination of allCollections requests and timeouts during pagetype fetching were fixed.

  • ๐Ÿ› Fix PDP and PLP breadcrumb list item's URL paths - #1148 Uppercase and spaces in PLP and PDP links used in the breadcrumb component have been fixed.

  • โœจ Moves some Filter logic to the API - #1154 Logic from the Filter component was moved from the frontend to the backend (API) to reduce processing on the frontend. Thus, the VTEX API can now sort the facets values alphabetically. Also, the departamento facet was removed from the PLP page.

  • ๐Ÿ› Fix StoreProduct returning wrong SKU - #1156 SKU IDs on accounts in which multiple SKUs are available for each product no longer retur incorrect StoreProduct values.

  • ๐Ÿ› Fix filter active brands - #1157 The NotFoundError: Catalog returned FullText for slug: canyon. error no longer occurs for cases where the API returns a list of brands containing inactive brands.

  • ๐Ÿ› Fix Cart item availability - #1160 Now, if a product has a limited inventory, the cart component limits the number of products the user can add to it. Also, if the user adds more items, a toast message is raised, warning the user.

gatsby-plugin-nginxโ€‹

  • ๐Ÿ› Remove trailing slash from incoming requests - #1145 Now, headers are properly set when a requested page has an exact match, but the request URL contains a trailing slash.

lighthouse-configโ€‹

  • โœจ Add performance budgets to lighthouse config - #1150 Now, the Lighthouse report includes a Performance Budgets section. A performance budget establishes limits on metrics that influence site performance.