Skip to content

[Feature] React/Vue/Svelte bindings for the actor-ts client (useActor, useAsk, useTopic) #436

Description

@pathosDev

Depends on #435 (typed client).

Rationale

The typed client (#435) gives frontends a protocol-safe transport; framework bindings make it idiomatic: useAsk/useTopic hooks (React), stores (Svelte), composables (Vue) that subscribe to actor topics and drive asks with loading/error state.

Scope

const live = useTopic<CounterProtocol>(client, 'changed');
const { value, loading } = useAsk<CounterProtocol>(client, 'counter-1', { kind: 'get' });

Documentation

Client docs chapter section per framework (EN + DE); JSDoc; CHANGELOG; chat-example README update.

Acceptance

  • React binding covered by tests (renderHook fixtures); SSR smoke (no window access at import time); chat React frontend runs on the binding.

Non-goals

State-management integrations (Redux/Zustand adapters); optimistic mutations.

Relates

#435; improvement program M7; dependency policy #419.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: lowNice-to-have / niche / demand-driven

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions