wxt: [Storage] When `getValue` returns `defaultValue` it doesn't actually save it

Feature Request

Either always save the defaultValue in storage, or add a setting for the defaultValue to be saved in storage when it get’s returned.

Is your feature request related to a bug?

N/A

Additional context

import { v4 as uuid } from "uuid";

storage.defineItem<string>("local:identifier", { defaultValue: uuid() });

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (4 by maintainers)

Most upvoted comments

Yes, that’d be great