Skip to content

useIDBKeyval | custom serialization as per useStorage #4780

@matthewjumpsoffbuildings

Description

Clear and concise description of the problem

The useIDBKeyval integration is great, but I was suprised that there was no way to customise the serialization on write/read.

Suggested solution

It would be good to bring it up to parity with the regular useStorage, as per https://vueuse.org/core/useStorage/#custom-serialization

Alternative

No response

Additional context

No response

Validations

  • Follow our Code of Conduct
    Read the docs.
    Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @matthewjumpsoffbuildings@ilyaliao

      Issue actions

        `useIDBKeyval ` | custom serialization as per `useStorage` · Issue #4780 · vueuse/vueuse