File "cache.js"
Full path: /home/disqkgca/aqanet.org/wp-content/plugins/extendify/src/PageCreator/state/cache.js
File size: 387 B
MIME-type: text/x-java
Charset: utf-8
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
export const usePageDescriptionStore = create(
persist(
(set) => ({
description: null,
setDescription: (description) => set({ description }),
reset: () => set({ description: null }),
}),
{
name: `extendify-page-creator-page-description-cache-${window.extSharedData.siteId}`,
},
),
);