Skip to content

Use reactive state pattern instead of individual refs to simplify components #106

@dlongley

Description

@dlongley
          We don't have to do this in this PR, but I do wonder if this is all cleaner and more easily done with this pattern:
const state = reactive({
  holder: '',
  ...
});

And then just state.holder etc. throughout.

Originally posted by @dlongley in #105 (comment)

See also that computed properties can be used with a reactive object. (See: https://stackoverflow.com/a/65977617).

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