Conversation
…t; fix loading state bug in useRxQuery Agent-Logs-Url: https://github.com/pubkey/rxdb/sessions/0dc0384e-4293-4e8e-8833-f0fbda27c794 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/pubkey/rxdb/sessions/0dc0384e-4293-4e8e-8833-f0fbda27c794 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/pubkey/rxdb/sessions/54f4c9b9-cc0b-484a-a624-394193b22460 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/pubkey/rxdb/sessions/d4faebfb-e148-444b-b08d-d07c124ff550 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/pubkey/rxdb/sessions/f3030f4c-5865-406f-8035-ec65a8cf6aa4 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
|
@copilot running the tauri example tests fail: No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host.
Error: ../../test/react/react-hooks.test.tsx(3,27): error TS2305: Module '"@testing-library/react"' has no exported member 'waitFor'. |
…eaking its build Agent-Logs-Url: https://github.com/pubkey/rxdb/sessions/eb340f4e-dcf6-4fe9-8c0f-c22f93364387 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Fixed in cefa273. The tauri example had no local |
|
@copilot still fails the tauri example. fix it and then run the tauri build and test locally to ensure it works. Error is: Compiling async-executor v1.13.1 |
…instead of adding local tsconfig Agent-Logs-Url: https://github.com/pubkey/rxdb/sessions/d91d73ea-b9cd-41bf-9709-7cc3f7d99e43 Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Fixed in 2c30f60. The previous approach of adding a local New approach: removed the local tsconfig and instead excluded |
The React hooks plugin (
src/plugins/react) had no test coverage. TheuseRxQueryhook also initialized loading state asfalse, causing components to briefly render with empty results before the query resolved.Bug fix
use-rx-query.ts: ChangeduseState(false)→useState(true)soloadingis initiallytruesetLoading(loading)→setLoading(true)(stale closure was capturing the variable instead of setting the literal)Test suite
test/react/react-hooks.test.tsxwith 10 tests coveringRxDatabaseProvider,useRxDatabase,useRxQuery, anduseLiveRxQuerytest/react.test.tsentry pointCI
test:reactstep to thecorejob in.github/workflows/main.yml, runs afterbuildandtest:typingsDependencies (devDependencies)
react,react-dom,@testing-library/react,global-jsdom,jsdom