alrightsure
alrightsure
Explore posts from servers
SSolidJS
Created by alrightsure on 9/5/2024 in #support
Top level "use server" doesn't seem to work
ahhh ok. thanks!
6 replies
CDCloudflare Developers
Created by alrightsure on 1/24/2024 in #next-on-pages
Anyone get D1 working with local
Awesome no worries at all! Now that I’ve got that figured out it’s been smooth sailing and the deployed performance is really impressive. Thanks for replying and clarifying!
9 replies
CDCloudflare Developers
Created by alrightsure on 1/24/2024 in #next-on-pages
Anyone get D1 working with local
Ok I finally figured it out (as soon as I posted in here of course). Apparently the "databaseName" attribute in next-on-pages equates to the "(preivew_)database_id" attribute in wrangler.toml, NOT the "database_name" attribute. Kind of baffling that this isn't documented, but I have it working now.
9 replies
TTCTheo's Typesafe Cult
Created by alrightsure on 5/12/2023 in #questions
Suggestions for React Native offline-first DB with syncing
I just ended up using Supabase with some specific configs for tanstack query to be more offline friendly. Definitely not quite up to par with firebase’s offline capabilities but good enough for me
6 replies
SSolidJS
Created by alrightsure on 5/18/2023 in #support
useRouteData empty on HMR
Bump. Still haven’t solved this. Don’t want to file an issue as it’s probably just something I’m misunderstanding
3 replies
SSolidJS
Created by alrightsure on 1/27/2023 in #support
Calling database with server actions in Solid Start
Awesome! I understand the docs (and solid start) are very much in-development so I’m happy even having this much to go off of, I think I was just overthinking the wording.
8 replies
SSolidJS
Created by alrightsure on 1/27/2023 in #support
Calling database with server actions in Solid Start
I appreciate the responses! I think I was just worried there was something specifically with the actions that was considered a bad practice, but I am pretty sure I am in the camp that likes the idea of consolidated code in one spot. Will definitely try it out and see how I like it!
8 replies
SSolidJS
Created by alrightsure on 1/27/2023 in #support
Calling database with server actions in Solid Start
I guess I’m aware of the philosophy, I’m more confused on why it would mention it specifically for the actions, but then on the API page it seems to take a stance that it DB calls should be used in the same file: “While we think that using createServerData$ is the best way to write server-side code for data needed by your UI, sometimes you need to expose API routes.”
8 replies
TTCTheo's Typesafe Cult
Created by ruhroh on 11/13/2022 in #questions
How would you make requests to an Open API that follows traditional REST using t3 stack
so call the tRPC endpoint in the frontend, and then call the API with fetch within the tRPC end point, return the result of the fetch with tRPC
25 replies
TTCTheo's Typesafe Cult
Created by ruhroh on 11/13/2022 in #questions
How would you make requests to an Open API that follows traditional REST using t3 stack
you could call it in the front end with react-query, but more likely you would want to call it in the backend from a tRPC query
25 replies
TTCTheo's Typesafe Cult
Created by alrightsure on 11/11/2022 in #questions
Best Practices When Using Components with Tailwind
Awesome definitely checking these out, thanks guys
15 replies
TTCTheo's Typesafe Cult
Created by nexxel on 11/1/2022 in #questions
how to reduce layout shift in astro
I'm not super well-versed in fonts but I'd probably mess with that. If you throttle the network and performance, you can see that it loads in another font first, then jumps to the correct layout once it loads in your font.
124 replies