Svelte user registration issue with setting store value
问题 helo :) I'm trying to register an user and after success, setContext to newly registered user and then navigate to home. Server properly responds and registers user, but when setContext is called i get the following error: "index.mjs:552 Uncaught (in promise) Error: Function called outside component initialization" <script> import { setContext } from 'svelte' async function handleRegistration(e) { let user = { firstname: e.target.firstname.value, lastname: e.target.lastname.value, } fetch(