Skip to content

feat(core): storage support custom storage backends - #211

Open
vs-borodin wants to merge 1 commit into
mainfrom
feat/storage-custom-backends
Open

feat(core): storage support custom storage backends#211
vs-borodin wants to merge 1 commit into
mainfrom
feat/storage-custom-backends

Conversation

@vs-borodin

Copy link
Copy Markdown
Contributor

Closes: #199

@vs-borodin

Copy link
Copy Markdown
Contributor Author

@LcsGa hi! Could you take a look when you have a chance? Any thoughts?

@LcsGa

LcsGa commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Hey! I'll take a look at it asap!

@LcsGa LcsGa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from one very small suggestion, everything seems OK to me.

}

if (isServer || !storageAvailable(type)) {
const configured = options?.storage !== undefined ? options.storage : options?.type ?? 'local';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const configured = options?.storage !== undefined ? options.storage : options?.type ?? 'local';
const configured = options?.storage ?? options?.type ?? 'local';

@LcsGa

LcsGa commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

But if I may, have you considered providing the sessionStorage / localStorage objects directly, similar to VueUse?
https://vueuse.org/core/useStorage/#usestorage

@vs-borodin vs-borodin modified the milestones: v0.0.5, v1.0.0, v0.5.1 Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support custom storage engines in storage() via storageOptions()

2 participants