Skip to content

Feature Request: Context-free option instead of SpacetimeDBProvider (vue, ts) #4734

@Ole28

Description

@Ole28

I like to use pinia (vue) for global state management which lives outside the component tree.
Is it possible to add a option for the composables to pass the context explicitly?

I imagine it similar to this:
useTable(_explicit_context_here, tables.table_name);
This would not need to call useSpacetimeDB and just work with the provided context.

This will also work with most other frameworks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions