React
Hooks
useSubscription
Use this hook to access a subscription for any function that implements the Subscription interface.
Example
'use client'
import { } from 'seitu/web'
import { } from 'seitu/react'
import * as from 'zod'
export default function () {
const = (({
: 'test',
: 0,
: .(),
}))
return <>{}</>
}Example
'use client'
import { } from 'seitu/web'
import { } from 'seitu/react'
import * as from 'zod'
const = ({
: 'test',
: 0,
: .(),
})
export default function () {
const = ()
return <>{}</>
}Example
'use client'
import { , } from 'seitu/web'
import { } from 'seitu/react'
import * as from 'zod'
const = ({
: {
: .(),
: .(),
},
: { : 0, : '' },
})
// Usage with selector, re-renders only when count changes
export default function () {
const = (, => .)
return <>{}</>
}