mdj-uk

Results 11 comments of mdj-uk

I used the solution above (https://github.com/notrab/react-use-cart/issues/88#issuecomment-1086117615) for a while, i.e. conditionally rendering `CartProvider` only once the app is mounted. However that leads to a couple of issues 1. it causes...

@limex Yes I tried that, unfortunately it doesn't help.

Annoying! Thanks for taking a look. Will have fun trying out the new client locally.

For me the default shortcut (ctrl+shift+tab) still does nothing - unlike the comments above. I'm on version 1.7.2b (Firefox 134.0.2) (64-bit) with MacOS 14.2.1 It also does nothing when rebound,...

I wish the docs were clearer, but nothing is cached client side unless it's prefetched. (Unless you alter [`experimental.staleTimes.dynamic`](https://nextjs.org/docs/app/api-reference/config/next-config-js/staleTimes) to be non-zero) By default anything static or marked 'use cache'...

Hacky workaround if you want the old behaviour: `useEffect` cleanup functions still fire when you navigate away from the current page, so use that to increment some value which is...

Does it work if you return an empty array from `generateStaticParams`? (Without cache components you can do this as an alternative to `export const dynamic = 'force-static'` to get ISR....

Actually this pattern works fine, see for instance `app/product/[id]/page.tsx` from https://github.com/aurorascharff/next16-commerce (deployed to https://next16-commerce.vercel.app/) which has 'use cache' on its data fetching function. It seems the repro here works if...

@perfectbase it looks like you're hitting a vercel specific problem, your next 16 + 'use cache' code works as expected for me in a local prod build. i.e. the content...

Hi @gnoff. Thanks so much for the detailed comments here and in https://github.com/vercel/next.js/issues/82477#issuecomment-3321468224 they are super helpful for understanding how this all works. I'm confused by this part: > But...