Svelte mastery

203 posts

Svelte mastery

Svelte mastery

@MasterSvelte

I will help you become a Svelte MASTER! Lots of Sveltey videos here: https://t.co/6U28Hx46mc

เข้าร่วม Haziran 2019
247 กำลังติดตาม1.9K ผู้ติดตาม
Svelte mastery
Svelte mastery@MasterSvelte·
Note if you were using uppercase headers in your vercel function. An update seems to have made them all lowercase! Was that on purpose @vercel ?
English
0
0
0
0
Svelte mastery
Svelte mastery@MasterSvelte·
Anyone using @vite_js with @vercel dev? If I just use `npx vite` it's really fast. But when I use `vercel dev` with `"dev": "vite --port $PORT" `in my package.json it's really slow cause it reloads all my files on the network tab every time. Any ideas..? 🙏
English
0
0
4
0
Svelte mastery
Svelte mastery@MasterSvelte·
@mark_volkmann @svelte @opensas @rootsikal Since I have to use .set() in .ts files anyway, it's easier to search for all places where a store is being set if I can just look for store.set( or store.update( .. is what I was thinking at least.
English
1
0
0
0
Svelte mastery
Svelte mastery@MasterSvelte·
Any @svelte lint rule to enforce not setting stores like $coolStore = 'cool_value' and instead use coolStore.set('cooler_value') ..?
English
2
1
2
0
Svelte mastery
Svelte mastery@MasterSvelte·
Who throws all their stores into a single stores.ts file? I'm thinking this is the way to go for stores that are used across multiple components.
English
0
0
1
0
Svelte mastery
Svelte mastery@MasterSvelte·
@ahmedfmire good idea! how do you keep them in sync with each other? if I add a new table to one of them, do I need to go add that table to the other two manually?
English
1
0
5
0
Ahmed Fuad Mire
Ahmed Fuad Mire@ahmedfmire·
⚡️#SupabaseTips Series - #07⚡️ Create separate development and production DBs in Supabase. When developing production-grade apps, you want to be able to have 3 environments. Development -> Staging -> Production Setup the development on the Free Plan
Ahmed Fuad Mire tweet media
English
3
1
9
0
Svelte mastery
Svelte mastery@MasterSvelte·
Anyone know of any gotchas when trying to update the database in @supabase with the beforeunload event?
English
0
0
0
0
Svelte mastery
Svelte mastery@MasterSvelte·
oh wait seems like between subdomains it stores a cookie so I can just use that!
English
0
0
0
0
Svelte mastery
Svelte mastery@MasterSvelte·
@supabase Any suggestions for how to pass user credentials across subdomains / websites ..?
English
1
0
0
0
Andrew Smith
Andrew Smith@silentworks·
@MasterSvelte @supabase I think you would have to build out your own Auth infrastructure on the server-side in your SvelteKit code for this to work. I don't think there would be a way to leverage the existing Supabase Auth to get this working.
English
1
0
1
0
Svelte mastery
Svelte mastery@MasterSvelte·
On @supabase is it possible to send user a 6 digit code instead of a magic link? I'm thinking maybe there's a way to convert the {{ .ConfirmationURL }} into a code in the template..? But we'd need access to the ConfirmationURL in the client to store it in the DB as well.. 🤔
English
2
0
2
0
Svelte mastery
Svelte mastery@MasterSvelte·
Does anyone use @sveltejs components that only export helper functions just so you can use the $store syntax?
English
2
0
3
0
Svelte mastery
Svelte mastery@MasterSvelte·
So as far as logging errors goes.. can I just console.error any errors and they'll show up?
English
0
0
2
0
Svelte mastery
Svelte mastery@MasterSvelte·
@silentworks @supabase ah yeah i was trying that but the query params weren't showing up in the magic link for some reason =/ (I had a slash at the end of the url) But actually I found that the redirect link attaches some stuff in the url like localhost:3000/#access_token=...&refresh_token...
English
1
0
0
0
Svelte mastery
Svelte mastery@MasterSvelte·
Is there a way to tell if my web page is coming from a magic link redirect? Since it takes a moment for @supabase to set the user session in localStorage, there's no way to tell on page load if there's a user or not.
English
1
0
3
0
Svelte mastery
Svelte mastery@MasterSvelte·
Anyone have tips on testing for the canvas element? Anyone using @Cypress_io for that?
English
0
0
2
0