Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
fix(svelte): empty await block
Browse files Browse the repository at this point in the history
  • Loading branch information
galvez committed Jun 26, 2022
1 parent b2527e8 commit a16dea8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/fastify-dx-svelte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

**Fastify DX for Svelte** is a renderer adapter for [**fastify-vite**](https://github.com/fastify/fastify-vite).

It lets you run and SSR (server-side render) **Svelte applications built with Vite** on [Fastify](https://fastify.io/), with a minimal and transparent **server-first approach** — everything starts with `server.js`, your actual Fastify server).
It lets you run and SSR (server-side render) **Svelte applications built with Vite** on [Fastify](https://fastify.io/), with a minimal and transparent **server-first approach** — everything starts with `server.js`, your actual Fastify server.

It also provides a set of built-in utilities for ease of development and managing a universal JavaScript context (SSR to CSR), very much like **Nuxt.js**, **Next.js** and **Remix**. All **Fastify DX** framework adapters implement the [URMA specification](https://github.com/fastify/fastify-dx/blob/main/URMA.md) and have almost the same API, with only minimal differences due to specific framework APIs or idioms.

Expand Down
2 changes: 1 addition & 1 deletion packages/fastify-dx-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"main": "index.js",
"name": "fastify-dx-svelte",
"version": "0.0.1",
"version": "0.0.2",
"files": [
"virtual/root.svelte",
"virtual/route.svelte",
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify-dx-svelte/virtual/route.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ let setupClientRouteContext = !isServer && setup()
<svelte:component this={component} />
</svelte:component>
{:else}
{#await setupClientRouteContext}{:then}
{#await setupClientRouteContext then}
<svelte:component this={layouts[ctx.layout].default}>
<Loadable loader={component} />
</svelte:component>
Expand Down
8 changes: 4 additions & 4 deletions starters/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"lint": "eslint . --ext .js,.svelte --fix"
},
"dependencies": {
"fastify-dx-svelte": "^0.0.1-pre",
"fastify-dx-svelte": "^0.0.2",
"fastify-vite": "^3.0.0-beta.23",
"ky": "^0.31.0",
"ky-universal": "^0.10.1"
"ky-universal": "^0.10.1",
"ky": "^0.31.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.16.0",
Expand All @@ -37,4 +37,4 @@
"ky": "^0.31.0"
}
}
}
}

0 comments on commit a16dea8

Please sign in to comment.