PageSourceSearch

https://vojtech.net/assets/useNavigate-bFbIbv9A.js

js vojtech.net collected 2026-10-05 06:57:01 UTC 730 bytes, 1 lines download raw bytes

1import{i as e,n as t}from"./jsx-runtime-Cltr0gcK.js";import{_ as n}from"./utils-DCvbpOtd.js";import{i as r,t as i}from"./useSelector-D5vQozjB.js";import{n as a,t as o}from"./matchContext-BIvqOYEx.js";function s(){throw Error(`Invariant failed`)}var c=e(t(),1),l={};function u(e,t){let r=c.useRef();return i=>{let a=e?.select?e.select(i):i;return e?.structuralSharing??t.options.defaultStructuralSharing?r.current=n(r.current,a):a}}function d(e){let t=r(),n=c.useContext(e.from?o:a),d=e.from??n,f=t.stores.getMatchStore(d),p=u(e,t),m=i(f,e=>e?p(e):l);if(m!==l)return m;(e.shouldThrow??!0)&&s()}function f(e){let t=r();return c.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}export{s as i,d as n,u as r,f as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.