MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / savePageInfoToLocalStorage

Function savePageInfoToLocalStorage

examples/dashboard/src/lib/schema.ts:38–40  ·  view source on GitHub ↗
(info: Array<{ path: string; title: string }>)

Source from the content-addressed store, hash-verified

36}
37
38export const savePageInfoToLocalStorage = (info: Array<{ path: string; title: string }>) => {
39 localStorage.setItem(PAGE_INFO, JSON.stringify(info))
40}
41
42export const getPageInfoFromLocalStorage = (): Array<{ path: string; title: string }> => {
43 const pageInfo = localStorage.getItem(PAGE_INFO)

Callers 1

saveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected