Y7YA
Y7YA
TTCTheo's Typesafe Cult
Created by Y7YA on 8/11/2024 in #questions
Server actions in server components
I lost the link unfortunately, but it wasn't an authoritative figure and the guy himself said he wasn't sure.
6 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 8/10/2024 in #questions
NextJS prefetch bad for bandwidth?
yeah that unstable_cache vid was quite insightful, actually lead us to start refactoring the many huge fetch responses we were cacheing regularly
19 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 8/10/2024 in #questions
NextJS prefetch bad for bandwidth?
That's true.. I guess globally disabling prefetch, & instead cacheing everything as we were currently doing will be the way to go. I thought maybe prefetching could allow us to less heavily cache but doesn't seem to be worth it.
19 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 8/10/2024 in #questions
NextJS prefetch bad for bandwidth?
I was thinking maybe I could dynamically disable/enable prefetch based on user bandwidth - no clue how I'm going to achieve that as of right now though.
19 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 8/10/2024 in #questions
NextJS prefetch bad for bandwidth?
We have prefetch disabled globally but I want an excuse to enable it. I don't want to penalize the experience of users with high bandwidth at the expense of improving the experience of users with low bandwidth
19 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 8/10/2024 in #questions
NextJS prefetch bad for bandwidth?
No description
19 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 6/8/2024 in #questions
React Native Security Question (.env)
seems like RLS is the suggested security measure, guessing can't use an ORM with RLS
9 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 6/8/2024 in #questions
React Native Security Question (.env)
how do I communicate with the database then? A standalone server?
9 replies
TTCTheo's Typesafe Cult
Created by Traconis on 5/7/2024 in #questions
Theo's tutorial
Is your code formatted correctly?
16 replies
TTCTheo's Typesafe Cult
Created by Traconis on 5/7/2024 in #questions
Theo's tutorial
Could you hover over the red part and see what it says? My guess is the linter is configured to show red warning lines on unused variables and mis-indented code.
16 replies
TTCTheo's Typesafe Cult
Created by Patrik Zita on 4/24/2024 in #questions
Shadcn - Drawer - Vaul - flashing after closing Drawer
I think this is due to the overlay. Try messing around with the overlay styles to achieve a different way of getting the greyed out background.
4 replies
TTCTheo's Typesafe Cult
Created by Ani on 4/24/2024 in #questions
Am I being lowballed?
was coming here expecting to be like "it's not that bad".. but nevermind
52 replies
TTCTheo's Typesafe Cult
Created by Ani on 4/24/2024 in #questions
Am I being lowballed?
😆 😆 😆
52 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 4/24/2024 in #questions
NextJS detect if page is fetching new data, if so, display loading
Yeah I guess it doesn't make sense to rely on SSR for this level of dynamic behaviour 🤔
21 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 4/24/2024 in #questions
NextJS detect if page is fetching new data, if so, display loading
There really needs to be some useIsFetching hook or something
21 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 4/24/2024 in #questions
NextJS detect if page is fetching new data, if so, display loading
Well I mean that sounds like something that would work but no clue how I would reliably save the old data.
21 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 4/24/2024 in #questions
NextJS detect if page is fetching new data, if so, display loading
I'm currently researching into useTransition might be the right tool for the job
21 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 4/24/2024 in #questions
NextJS detect if page is fetching new data, if so, display loading
I only need to display an overlay ontop of the old content until the new content arrives
21 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 4/24/2024 in #questions
NextJS detect if page is fetching new data, if so, display loading
I don't want to ever remove the old content whilst the page is loading
21 replies
TTCTheo's Typesafe Cult
Created by Y7YA on 4/24/2024 in #questions
NextJS detect if page is fetching new data, if so, display loading
Notice how the components share the same data though but I only want 1 of them to have a loading overlay
21 replies