@brust/create-app 2.0.0-alpha.16 → 2.0.0-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brust/create-app",
3
- "version": "2.0.0-alpha.16",
3
+ "version": "2.0.0-alpha.18",
4
4
  "description": "Scaffold a brust v2 app — bun create @brust/app <name>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://brust.dev",
@@ -1,7 +1,7 @@
1
1
  // components/TeamBuilder.tsx — react tier on purpose (useReducer for `open`): SSR + idle hydration (S12). The roster is the
2
2
  // unified `team` store: the SSR scope is seeded from the snapshot, so the first client snapshot equals the server paint (D8).
3
3
  import { useStore } from '@brust/core/store/react'
4
- import { useReducer } from 'react'
4
+ import { useReducer, useTransition } from 'react'
5
5
  import { removeMember } from '../lib/team-client'
6
6
  import { team } from '../stores/team'
7
7
 
@@ -9,6 +9,7 @@ const flip = (open: boolean): boolean => !open
9
9
 
10
10
  export default function TeamBuilder() {
11
11
  const { members, max } = useStore(team)
12
+ useTransition()
12
13
  const [open, toggle] = useReducer(flip, false)
13
14
  return (
14
15
  <div className="fixed bottom-5 right-5 z-[200]">
@@ -1,13 +1,14 @@
1
1
  // components/UnifiedIsland.tsx — React island (SSR + hydration). `useStore` alone compiles native, so the "clicks from
2
2
  // React" tally (useReducer) is what puts this on the react tier (D10 asks for an island).
3
3
  import { useStore } from '@brust/core/store/react'
4
- import { useReducer } from 'react'
4
+ import { useReducer, useTransition } from 'react'
5
5
  import { unified } from '../stores/unified'
6
6
 
7
7
  const tick = (n: number): number => n + 1
8
8
 
9
9
  export default function UnifiedIsland() {
10
10
  const { count } = useStore(unified)
11
+ useTransition()
11
12
  const [mine, tally] = useReducer(tick, 0)
12
13
  return (
13
14
  <div className="flex flex-col items-center gap-4">