Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review #293

Open
42 of 46 tasks
Rich-Harris opened this issue Mar 22, 2023 · 2 comments
Open
42 of 46 tasks

Review #293

Rich-Harris opened this issue Mar 22, 2023 · 2 comments

Comments

@Rich-Harris
Copy link
Member

Rich-Harris commented Mar 22, 2023

Have decided I need to do a proper review of what work is outstanding with the existing tutorial chapters before writing new ones, and collecting notes here makes most sense. Will add new details to this post as I review individual exercises. A checked box indicates that the exercise is in good shape.

This probably covers #281, #282 and #283


Welcome to Svelte

Advanced Svelte

Introduction to SvelteKit

Concepts

There's waaaay too much throat-clearing here, and the transition from the previous exercise is awkward

Routing

Loading data

Forms

API routes

Errors and redirects

Page options

  • Basics — would be nice if this and the 'prerender' page had more than just an <h1>
  • ssr — this doesn't fail if you navigate from the previous page, because no SSR happens (though if it did, then the failure would be confusing)
  • csr
  • prerender
  • trailingSlash

Advanced SvelteKit

Hooks

Stores

Advanced routing

Advanced loading

Environment variables

@Rich-Harris
Copy link
Member Author

Referring to advance Svelte topics in the Introduction to SvelteKit exercises is all but unavoidable. I think we might want to reorder things:

  1. Introduction to Svelte
  2. Advanced Svelte
  3. Introduction to SvelteKit
  4. Advanced SvelteKit

@Rich-Harris
Copy link
Member Author

Rich-Harris commented Apr 8, 2023

Missing exercises (some of these aren't all that important, just listing for completeness sake):

Svelte

Important

  • style:foo, --style

Not important

  • @const
  • hasContext and getAllContexts
  • readonly

SvelteKit

Important

  • $lib
  • $types
  • event.fetch
  • event.locals
  • setting headers and cookies — needs to go before form stuff
  • link options
  • asset handling
  • snapshots
  • $app/navigation (particularly goto, beforeUpdate and afterUpdate), $app/environment, etc
  • $service-worker

Important but not yet possible

Not important

  • Web standards
  • State management
  • encoded characters in routes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant