Skip to content

Avoid forwarding writes on shadow tables to Room#358

Merged
simolus3 merged 3 commits into
mainfrom
room-shadow-table-fix
Jun 8, 2026
Merged

Avoid forwarding writes on shadow tables to Room#358
simolus3 merged 3 commits into
mainfrom
room-shadow-table-fix

Conversation

@simolus3

@simolus3 simolus3 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

For the Room integration, we use the update hook from the core extension to track writes made through PowerSync APIs. Calling invalidationTracker.refresh in Room is only allowed for tables tracked by the Room schema of the database, passing another table makes that method throw.

Before this PR, we filtered out internal Room and PowerSync tables and otherwise forwarded all changes. But when an fts5 table is used, we may also get notifications for internal shadow tables (like fts_data, fts_docsize and others). These also shouldn't be forwarded to Room. This PR adds a check to stop forwarding these.

This also prepares the 1.13.0 release.

@simolus3 simolus3 marked this pull request as ready for review June 8, 2026 09:33
@simolus3 simolus3 requested a review from Chriztiaan June 8, 2026 09:33
@simolus3 simolus3 merged commit cd8c6ae into main Jun 8, 2026
18 checks passed
@simolus3 simolus3 deleted the room-shadow-table-fix branch June 8, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants