Skip to content

Commit

Permalink
Merge branch 'master' into ej/background-map-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
lightlii committed Aug 22, 2023
2 parents 70e3726 + e6fea7f commit 0666a81
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/renderer/hooks/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,15 @@ import store from '../../persist-store'
* @type {import('zustand/middleware').StateStorage}
*/
const storage = {
/**
* @param {string} key - A string key to reference the stored item by.
* @returns {string | null}
*/
getItem: key => {
/**
* @type {string | null}
*/

return store.get(key, null)
},
/**
* @param {string} key - A string key to reference the stored item by.
* @param {string} state - The state to be persisted - stringified JSON.
* @returns {void}
*/
setItem: (key, state) => {
store.set(key, state)
},
/**
* @param {string} key - A string key to reference the stored item to be removed.
*/
removeItem: key => {
store.delete(key)
}
Expand Down

0 comments on commit 0666a81

Please sign in to comment.