Skip to content

RFC: remove store.reactive option #309

@wmertens

Description

@wmertens

Champion

wmertens

What's the motivation for this proposal?

Problems you are trying to solve:

  • clean the API

Proposed Solution / Feature

What do you propose?

useStore(val, opts) has reactive as an option. On every store creation we spend time seeing if it is set.

It is exactly the same as calling useConstant(val).

I propose to deprecate the option, asking to use useConstant instead, and to remove the option in v2.

PRs/ Links / References

https://qwik.dev/api/qwik/#usestoreoptions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    In Progress (STAGE 2)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions