mirror of
https://github.com/docmost/docmost.git
synced 2026-08-27 08:47:06 +08:00
useEffect ran once on mount with empty deps, but the wrapper div was inside a conditional branch that only renders after the base query resolves. Result: the ref was null when the effect ran, so nothing extended. Move the wrapper outside the conditional so the ref is always set, and re-run the effect when isLoading / isError / pageId change so the extension applies once the table mounts.