How to change data from layout in page in Svelte 5?
Im trying to make a login in Svelte 5. I have the request then i redirect to another page, /dashboard.The problem is: I wanted to show my user data from the login on my navbar above, which is in...
View ArticleHow to Create my own Svelte Embed Component
Certain platforms like GitBook allow you to insert an embed URL, like https://www.youtube.com/embed/eGUEAvNpz48, and it displays as a component on that website, as seen here:I want to create my own...
View ArticleEncapsulating context interactions
The docs for the context API have this example:import { getContext, setContext } from 'svelte';let userKey = Symbol('user');export function setUserContext(user: User) { setContext(userKey,...
View ArticleHow do I wait for a store that will eventually appear on the context using...
I have an Authentication store based on Xstate that I am trying to set the actors based on the config I get from another machine...export function createAuthMachine(fakeLogin) { const chosenActors =...
View ArticleHow to Sync Scrolling between 2 containers while displaying panel on hover
In my svelte component, I'm displaying line numbers for each line in text area. I've disabled the scrolling of line number. And manually sync line number container when I scroll on text area....
View Article