You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I am using it in multiple places like below to prevent props drilling.
import _ProductInfoDetails from "./sections/product-info-details";
const ProductInfoDetails = withProductData(_ProductInfoDetails);
my apis come from Strapi CMS and I can see each time I reload the page I get multiple requests of the same endpoint in the terminal and wondering does request memoization work in this case ? does it hurt performance in production with this approach ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hello NextJS community,
I have a higher order component like the below
and I am using it in multiple places like below to prevent props drilling.
my apis come from Strapi CMS and I can see each time I reload the page I get multiple requests of the same endpoint in the terminal and wondering does request memoization work in this case ? does it hurt performance in production with this approach ?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions