| @bigcommerce/catalyst-core | minor |
|---|
This refactor optimizes search PLP for caching and the eventual use of dynamicIO. With these changes we leverage data caching to hit mostly cache data for guest shoppers in different locales and with different currencies.
- We don't stream in Search page data, instead it's a blocking call to get page data.
- Our query functions now take in all params required for fetching, instead of accessing dynamic variables internally. This is important to serialize arguments if we want to eventually
use cache. - Use
Streamable.fromto generate our streaming props that are passed to our UI components. - Remove use of nuqs'
createSearchParamsCachein favor of nuqs'createLoader.
- Update
/(facted)/search/page.tsx- For this page we are now doing a blocking request for brand page data. Instead of having functions that each would read from props, we share streamable functions that can be passed to our UI components. We still stream in filter and product data.