@westacks/vortex
Version:
Server-based routing for SPAs
39 lines (38 loc) • 927 B
JavaScript
import { p as a } from "../page-DkBioJVC.js";
import "axios";
import { v as c, l as m } from "../dom-BXbsE9_c.js";
import { u as s, b as l } from "../form-6EHLr-hJ.js";
import { createSignal as f, onCleanup as p, createEffect as o } from "solid-js";
import { createMutable as b, modifyMutable as v, reconcile as d } from "solid-js/store";
const [R] = g(a), T = u(m), x = u(c);
function A(e, t) {
return i(s(e, t));
}
function C(e, t = "default") {
return i(l(e, t));
}
function g({ get: e, subscribe: t }) {
const r = f(e());
return t(r[1]), r;
}
function i({ get: e, subscribe: t }) {
const r = b(e());
return t((n) => v(r, d(n))), r;
}
function u(e) {
return (t, r) => {
const n = e(t, r());
n?.destroy && p(n.destroy), n?.update ? o(() => {
n?.update?.(r());
}) : o(() => {
r();
});
};
}
export {
T as link,
A as useForm,
R as usePage,
C as useRemember,
x as visible
};