houdini-react 1.2.8 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/plugin/codegen/entries.d.ts +1 -2
- package/build/plugin/codegen/index.d.ts +1 -2
- package/build/plugin/codegen/manifest.d.ts +4 -41
- package/build/plugin/codegen/router.d.ts +1 -2
- package/build/plugin/codegen/typeRoot.d.ts +1 -2
- package/build/plugin/index.d.ts +3 -1
- package/build/plugin/vite.d.ts +38 -1
- package/build/plugin-cjs/index.js +60265 -61245
- package/build/plugin-esm/index.js +60262 -61244
- package/build/runtime/index.d.ts +6 -3
- package/build/runtime/routing/components/Router.d.ts +4 -4
- package/build/runtime/routing/components/index.d.ts +0 -1
- package/build/runtime/routing/lib/cache.d.ts +1 -1
- package/build/runtime/routing/lib/types.d.ts +0 -4
- package/build/runtime/server/compat.d.ts +7 -0
- package/build/runtime/server/index.d.ts +17 -0
- package/build/runtime/server/session.d.ts +3 -0
- package/build/runtime-cjs/index.d.ts +6 -3
- package/build/runtime-cjs/index.js +22 -18
- package/build/runtime-cjs/routing/components/Router.d.ts +4 -4
- package/build/runtime-cjs/routing/components/Router.js +69 -39
- package/build/runtime-cjs/routing/components/index.d.ts +0 -1
- package/build/runtime-cjs/routing/components/index.js +0 -3
- package/build/runtime-cjs/routing/lib/cache.d.ts +1 -1
- package/build/runtime-cjs/routing/lib/cache.js +6 -2
- package/build/runtime-cjs/routing/lib/types.d.ts +0 -4
- package/build/runtime-cjs/server/compat.js +52 -0
- package/build/runtime-cjs/server/index.js +54 -0
- package/build/runtime-cjs/{routing/components/Link.js → server/session.js} +32 -22
- package/build/runtime-esm/index.d.ts +6 -3
- package/build/runtime-esm/index.js +22 -18
- package/build/runtime-esm/routing/components/Router.d.ts +4 -4
- package/build/runtime-esm/routing/components/Router.js +69 -38
- package/build/runtime-esm/routing/components/index.d.ts +0 -1
- package/build/runtime-esm/routing/components/index.js +0 -2
- package/build/runtime-esm/routing/lib/cache.d.ts +1 -1
- package/build/runtime-esm/routing/lib/cache.js +6 -2
- package/build/runtime-esm/routing/lib/types.d.ts +0 -4
- package/build/runtime-esm/server/compat.d.ts +7 -0
- package/build/runtime-esm/server/compat.js +28 -0
- package/build/runtime-esm/server/index.d.ts +17 -0
- package/build/runtime-esm/server/index.js +30 -0
- package/build/runtime-esm/server/session.d.ts +3 -0
- package/build/runtime-esm/server/session.js +30 -0
- package/package.json +3 -12
- package/build/plugin/conventions.d.ts +0 -24
- package/build/runtime/routing/components/Link.d.ts +0 -5
- package/build/runtime-cjs/routing/components/Link.d.ts +0 -5
- package/build/runtime-esm/routing/components/Link.d.ts +0 -5
- package/build/runtime-esm/routing/components/Link.js +0 -21
- package/build/server-cjs/index.js +0 -166712
- package/build/server-cjs/package.json +0 -1
- package/build/server-esm/index.js +0 -166703
- package/build/server-esm/package.json +0 -1
- /package/build/{server → runtime-cjs/server}/compat.d.ts +0 -0
- /package/build/{server → runtime-cjs/server}/index.d.ts +0 -0
- /package/build/{server → runtime-cjs/server}/session.d.ts +0 -0
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { useTransition } from "react";
|
|
2
|
-
import { useNavigationContext } from "./Router";
|
|
3
|
-
function Link({
|
|
4
|
-
href,
|
|
5
|
-
children,
|
|
6
|
-
style,
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
const { goto } = useNavigationContext();
|
|
10
|
-
const [pending, startTransition] = useTransition();
|
|
11
|
-
const click = (e) => {
|
|
12
|
-
e.preventDefault();
|
|
13
|
-
startTransition(() => {
|
|
14
|
-
goto(href);
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
return /* @__PURE__ */ React.createElement("a", { href, onClick: click, style, ...props }, children);
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
Link
|
|
21
|
-
};
|