@pinnacle0/react-stack-router
Advanced tools
Comparing version 0.1.3-beta.5 to 0.1.3-beta.6
export {createRouter} from "./createRouter"; | ||
export {Link} from "./component/Link"; | ||
export {RouterContext, RouteContext} from "./context"; | ||
export * from "./hooks"; | ||
export type {RouteProps, PathRouteProps, ComponentRouteProps} from "./component/Route"; | ||
export type {HistoryState, Router, PushOption, ReplaceOption, TransitionOption} from "./type"; |
@@ -25,5 +25,4 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
useEffect(() => router.subscribe(_ => setScreens([..._])), [router]); | ||
useEffect(() => router.attachSafariEdgeSwipeDetector(), [router]); | ||
return (_jsx("div", { className: classNames("g-stack-router", className), style: { ...style, ...routerStyle }, children: _jsx(AnimatePresence, { children: screens.map(screen => (_jsx(ScreenComponent, { className: "g-stack-router-screen", style: screenStyle, screen: screen }, screen.history.location.key))) }) })); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -45,2 +45,3 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
router.updateRoute(route); | ||
useEffect(() => router.attachSafariEdgeSwipeDetector(), []); | ||
useEffect(() => { | ||
@@ -47,0 +48,0 @@ router.initialize().then(() => setInitialized(true)); |
export { createRouter } from "./createRouter"; | ||
export { Link } from "./component/Link"; | ||
export { RouterContext, RouteContext } from "./context"; | ||
export * from "./hooks"; | ||
export type { RouteProps, PathRouteProps, ComponentRouteProps } from "./component/Route"; | ||
export type { HistoryState, Router, PushOption, ReplaceOption, TransitionOption } from "./type"; | ||
//# sourceMappingURL=index.d.ts.map |
export { createRouter } from "./createRouter"; | ||
export { Link } from "./component/Link"; | ||
export { RouterContext, RouteContext } from "./context"; | ||
export * from "./hooks"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pinnacle0/react-stack-router", | ||
"version": "0.1.3-beta.5", | ||
"version": "0.1.3-beta.6", | ||
"author": "Pinnacle", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
export {createRouter} from "./createRouter"; | ||
export {Link} from "./component/Link"; | ||
export {RouterContext, RouteContext} from "./context"; | ||
export * from "./hooks"; | ||
export type {RouteProps, PathRouteProps, ComponentRouteProps} from "./component/Route"; | ||
export type {HistoryState, Router, PushOption, ReplaceOption, TransitionOption} from "./type"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
124713
2102
103