added missing del
This commit is contained in:
parent
28d57323b6
commit
648412dd6d
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Lit + Zustand Architecture
|
# Lit + Zustand Architecture
|
||||||
|
|
||||||
A modern, no-build web application architecture using Lit web components with Zustand state management and IndexedDB persistence.
|
A simple (but modern & scalable) no-build web application architecture using Lit web components with Zustand state management and IndexedDB persistence.
|
||||||
|
|
||||||
## For TSX/React Developers
|
## For TSX/React Developers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { createStore } from 'zustand/vanilla'
|
import { createStore } from 'zustand/vanilla'
|
||||||
import { persist, createJSONStorage } from 'zustand/middleware'
|
import { persist, createJSONStorage } from 'zustand/middleware'
|
||||||
import { get, set } from 'idb-keyval'
|
import { get, set, del } from 'idb-keyval'
|
||||||
|
|
||||||
const storage = createJSONStorage(() => ({
|
const storage = createJSONStorage(() => ({
|
||||||
getItem: async (name) => {
|
getItem: async (name) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue