Skip to content

Commit ddcb25f

Browse files
authored
Merge pull request #20 from bholmesdev/feat/simple-stack-stream
Welcome simple-stack-stream
2 parents 68747cc + 0ab8cd1 commit ddcb25f

33 files changed

+318
-384
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"simple-stack-stream": patch
3+
---
4+
5+
Simple stream initial release. Who said suspense had to be hard?
File renamed without changes.
File renamed without changes.

β€Žexamples/form/astro.config.mjsβ€Ž renamed to β€Žexamples/playground/astro.config.mjsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineConfig } from "astro/config";
22
import simpleStackForm from "simple-stack-form";
3+
import simpleStackStream from "simple-stack-stream";
34
import react from "@astrojs/react";
45
import node from "@astrojs/node";
56
import preact from "@astrojs/preact";
@@ -10,6 +11,7 @@ export default defineConfig({
1011
output: "server",
1112
integrations: [
1213
simpleStackForm(),
14+
simpleStackStream(),
1315
react({ include: ["**/react/*"] }),
1416
preact({ include: ["**/preact/*"] }),
1517
tailwind(),

β€Žexamples/form/package.jsonβ€Ž renamed to β€Žexamples/playground/package.jsonβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@examples/form",
2+
"name": "@examples/playground",
33
"type": "module",
44
"version": "0.0.0",
55
"private": true,
@@ -24,6 +24,7 @@
2424
"react-dom": "^18.0.0",
2525
"sanitize-html": "^2.11.0",
2626
"simple-stack-form": "^0.1.0",
27+
"simple-stack-stream": "^0.0.1",
2728
"tailwindcss": "^3.0.24",
2829
"zod": "^3.22.4"
2930
},
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
type Props = {
3+
ms: number,
4+
class?: string,
5+
}
6+
7+
const {ms, class: cls} = Astro.props;
8+
9+
await new Promise(resolve => setTimeout(resolve, ms));
10+
---
11+
<div class:list={["rounded p-2 border-gray-300 border-2", cls]}>
12+
<slot />
13+
<p class="italic text-gray-600 text-sm">Loaded in {ms}ms</p>
14+
</div>

0 commit comments

Comments
Β (0)