.@tan_stack Start: how do you prevent route's `beforeLoad` / `loader` from being run server-side? Unfortunately, the current auth setup requires all network calls to happen in the browser
I've tried `spa.enabled: true` in Vite config and `ssr: false` in route
cc @tannerlinsley
3
3
1,512
Replying to @theo
@theo you can do type-safe optimistic updates via `queryOptions`: tanstack.com/query/latest/do…
You missed a piece of the blog post that specifically addresses that
16
Replying to @TkDodo
@TkDodo is it safe to call `setQueryData` in the middle of `mutationFn` for optimistic updates? My `mutationFn` is split into two phases: compute something & persist something. I want to optimistically update some queries after the "compute" phase but before the "persist" phase.
1
24
Какие же они уёбки, просто слов нет
Час назад матери Алексея позвонил следователь и поставил ультиматум. Или она в течение 3 часов соглашается на тайные похороны без публичного прощания, или Алексея захоронят в колонии. Она отказалась вести переговоры с СК, потому что у них нет полномочий решать, как и где ей хоронить сына. Она требует соблюсти закон, который обязывает следователей отдать тело в течение двух суток с момента установления причин смерти. Согласно медицинским документам, которые она подписывала, эти двое суток истекают завтра. Она настаивает на том, чтобы власти дали провести похороны и панихиду в соответствии с обычаями.
1
37
Looking for a frontend engineer:
* Next.js 14 and React Server Components
* Clerk auth
* tRPC-like communication and TanStack Query
* Radix UI (not @ shadcn / ui)
* Tailwind (and Framer Motion)
* Knows the difference between Jotai and Zustand
Hit me up
2
292
Replying to @Trackmania
@Trackmania I've just lost two Royal matches because the server disconnected me a several times (one of each seems to have restarted the match for everyone, because map set was exactly identical). I was playing on Steam Deck with solid internet connection.
1
1
27
Replying to @tan_stack
@tan_stack any way to prevent tick labels from being rotated in Charts? Discord discussion: discord.com/channels/7197023…
1
58
Replying to @ThePrimeagen
@ThePrimeagen @fasterthanlime If the two of you don't reconcile right now, the entire tech Twitter community will be deeply saddened :(
You'll force us to take action.
You’re unable to view this post because this account owner limits who can view their posts. Learn more
29
Replying to @tannerlinsley
@tannerlinsley the only thing I'm missing from the Router right now is the ability to pass context while `throw`-ing `redirect({ to: "/some-path" })`
Replying to @tannerlinsley
@tannerlinsley Another question about Router:
I have a `/` route with a loader which fetches the `user` object. If the user is authenticated, I want to redirect them to `/another/route`.
Can I somehow pass `user` object to `/another/route`? I'm using `<Navigate>` for redirect
1
12








