From 3575c15b700a60671c89cf0f38ffed2c9304f343 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 11 Aug 2026 12:27:08 +0800 Subject: [PATCH 1/2] fix: ignore node/ directory in ESLint config The `node/` directory contains a checkout of the Node.js source tree whose own `eslint.config.mjs` references files that don't exist in this repo (e.g. `benchmark/eslint.config_partial.mjs`). Add it to the `ignores` list so `node --run lint` doesn't fail. --- eslint.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index 9375e8cb..f2dfb865 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -13,6 +13,7 @@ export default defineConfig([ ignores: [ 'www/out', 'out/', + 'node/', 'packages/node/src/api-links/__tests__/fixtures/', ], }, From 8033680f4b34a388816be32bb49b85655b41f414 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 11 Aug 2026 12:36:58 +0800 Subject: [PATCH 2/2] fix: lint warn --- packages/react/src/html/ui/hooks/useOrama.mjs | 7 +++++-- packages/react/src/html/ui/islands/withIsland.jsx | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/react/src/html/ui/hooks/useOrama.mjs b/packages/react/src/html/ui/hooks/useOrama.mjs index 30a5903c..4b6f068d 100644 --- a/packages/react/src/html/ui/hooks/useOrama.mjs +++ b/packages/react/src/html/ui/hooks/useOrama.mjs @@ -14,6 +14,9 @@ export default pathname => { const loaded = useRef(null); useEffect(() => { + // Reset loaded state when pathname changes + loaded.current = null; + // Create the database instance const db = create({ schema: {}, @@ -45,8 +48,8 @@ export default pathname => { return search(db, options); }; - setClient(db); - }, []); + queueMicrotask(() => setClient(db)); + }, [pathname]); return client; }; diff --git a/packages/react/src/html/ui/islands/withIsland.jsx b/packages/react/src/html/ui/islands/withIsland.jsx index 6c4bde22..b7043ff5 100644 --- a/packages/react/src/html/ui/islands/withIsland.jsx +++ b/packages/react/src/html/ui/islands/withIsland.jsx @@ -48,6 +48,7 @@ export default (Component, { name, on }) => { {toChildArray(children).map((child, index) => ( + // eslint-disable-next-line react-x/no-array-index-key -- static server-rendered children never reorder {child}