UNPKG

@kit-data-manager/react-search-component

Version:

All-in-one component for rendering an elastic search UI for searching anything. Built-in support for visualizing related items in a graph and resolving unique identifiers.

14 lines 352 B
import { createStore } from "zustand"; export const resultCache = createStore()((set, get) => ({ cache: new Map(), set(key, value) { set(({ cache }) => { cache.set(key, value); return cache; }); }, get(key) { return get().cache.get(key); } })); //# sourceMappingURL=ResultCache.js.map