Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Browsing all 1545 articles
Browse latest View live

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 Article


Image may be NSFW.
Clik here to view.

How 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 Article


Encapsulating 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 Article

How 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 Article

Image may be NSFW.
Clik here to view.

How 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

Browsing all 1545 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>