The core to setup reverse proxy ( orange cloud ) from Cloudflare to vercel is to use "SSL Full (strict)"
Otherwise I got ->
This page isn’t working
xxx redirected you too many times.
Try deleting your cookies.
ERR_TOO_MANY_REDIRECTS
And the new version removes equalifyFn which encourages only returning vanilla js value seems weird at first.
But it's making more sense after 1 day of coding. It will force you to compare finest grained value in the selector.
useShallow to the rescue when I need to select an array.
It solves the problem of react context updates causing child components to re-render everytime.
There's still a context, but a context to the ref which never updates.
Then using selector in the child makes child components subscribe to a specific value instead of all the store values.
I gotta say
If you can oneshot sth with AI, it probably means you're not gonna make it.
That's bcs AI learns from existing pieces of code. You just dive into the ocean of competition
I prob plan to sell my product in 2026.
Building an audience is way harder than building the product.
My brain memory is full. It's not the workload but the direction.
What a hard lesson.