@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
26 lines (25 loc) • 724 B
JavaScript
import { c as g } from "react/compiler-runtime";
import { useEffect as h } from "react";
const w = (c) => {
const e = g(6), {
key: r,
onChange: s
} = c;
let t;
e[0] !== s || e[1] !== r ? (t = function(l) {
const {
key: i,
newValue: f
} = l;
i === r && s(f);
}, e[0] = s, e[1] = r, e[2] = t) : t = e[2];
const o = t;
let n;
e[3] !== o ? (n = () => (window.addEventListener("storage", o), () => window.removeEventListener("storage", o)), e[3] = o, e[4] = n) : n = e[4];
let a;
e[5] === Symbol.for("react.memo_cache_sentinel") ? (a = [], e[5] = a) : a = e[5], h(n, a);
};
export {
w as useWatchLocalStorageValue
};
//# sourceMappingURL=use-watch-localstorage-value.mjs.map