Skip to content

v0.15.1 — docs: withActor (async-safe WHO)

Choose a tag to compare

@VistaApps-za VistaApps-za released this 24 Jun 11:31

Documents withActor(id, fn) — the async-safe actor wrapper — alongside setActor. In an async handler (Firebase/Cloud Functions, tRPC resolvers) a bare setActor can be lost across an await; withActor (AsyncLocalStorage.run) keeps the user across awaited reads. Docs only — both APIs shipped in 0.14.0.