Log in Sign up
2 Matching Annotations
  1. Dec 2020
  2. github.com github.com
    give each app its own page, preloading and session stores, using context by Rich-Harris · Pull Request #642 · sveltejs/sapper
    1
    1. TylerRick 16 Dec 2020
      in Public
      The only solution that I can see is to ensure that each user gets their own set of stores for each server-rendered page. We can achieve this with the context API, and expose the stores like so: <script> import { stores } from '@sapper/app'; const { page, preloading, session } = stores(); </script> Calling stores() outside component initialisation would be an error.

      Good solution.

      make it hard to get wrong/incorrect security: information leaking good idea Sapper: session store Sapper
    Visit annotations in context

    Tags

    • good idea
    • make it hard to get wrong/incorrect
    • Sapper: session store
    • Sapper
    • security: information leaking

    Annotators

    • TylerRick

    URL

    github.com/sveltejs/sapper/pull/642
  3. github.com github.com
    Provide session store in @sapper/app by thgh · Pull Request #582 · sveltejs/sapper
    1
    1. TylerRick 16 Dec 2020
      in Public
      Sapper app session Sapper: session store
    Visit annotations in context

    Tags

    • app session
    • Sapper
    • Sapper: session store

    Annotators

    • TylerRick

    URL

    github.com/sveltejs/sapper/pull/582
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy