@lolyjs/core 0.2.0-alpha.2 → 0.2.0-alpha.3
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/LICENCE.md +9 -0
- package/dist/cli.cjs +5 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +24 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/react/hooks.cjs +134 -2
- package/dist/react/hooks.cjs.map +1 -1
- package/dist/react/hooks.d.mts +79 -1
- package/dist/react/hooks.d.ts +79 -1
- package/dist/react/hooks.js +132 -1
- package/dist/react/hooks.js.map +1 -1
- package/dist/runtime.cjs +24 -9
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +20 -5
- package/dist/runtime.js.map +1 -1
- package/package.json +3 -1
package/dist/cli.js
CHANGED
|
@@ -5088,7 +5088,7 @@ async function startProdServer(options = {}) {
|
|
|
5088
5088
|
import { hydrateRoot } from "react-dom/client";
|
|
5089
5089
|
|
|
5090
5090
|
// modules/runtime/client/AppShell.tsx
|
|
5091
|
-
import { useEffect, useState, useRef } from "react";
|
|
5091
|
+
import { useEffect, useState, useRef, useCallback } from "react";
|
|
5092
5092
|
|
|
5093
5093
|
// modules/runtime/client/RouterView.tsx
|
|
5094
5094
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -5117,6 +5117,10 @@ var dataCache = cacheStore.data;
|
|
|
5117
5117
|
var pathIndex = cacheStore.index;
|
|
5118
5118
|
var lru = cacheStore.lru;
|
|
5119
5119
|
|
|
5120
|
+
// modules/runtime/client/RouterContext.tsx
|
|
5121
|
+
import { createContext, useContext } from "react";
|
|
5122
|
+
var RouterContext = createContext(null);
|
|
5123
|
+
|
|
5120
5124
|
// modules/runtime/client/AppShell.tsx
|
|
5121
5125
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
5122
5126
|
|