commercelayer / demo-store-core

Commerce Layer Demo Store CORE
https://commercelayer.github.io/demo-store-core
MIT License
7 stars 19 forks source link

Avoid memoization when SSR #14

Closed marcomontalbano closed 1 year ago

marcomontalbano commented 1 year ago

Memoization was preventing new JSON data to be fetched. Disable memoize when NEXT_PUBLIC_DATA_FETCHING is set to ssr.