Skip to content

Trigger view refresh when a V8 procedure commits a transaction#4302

Open
joshua-spacetime wants to merge 2 commits intojoshua/procedures-dont-trigger-viewsfrom
joshua/procedures-dont-trigger-views-ts
Open

Trigger view refresh when a V8 procedure commits a transaction#4302
joshua-spacetime wants to merge 2 commits intojoshua/procedures-dont-trigger-viewsfrom
joshua/procedures-dont-trigger-views-ts

Conversation

@joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented Feb 16, 2026

Description of Changes

This PR fixes the bug where V8 procedures could commit a transaction without refreshing affected materialized views, which caused view-backed subscriptions to miss updates from procedure writes.

API and ABI breaking changes

None

Expected complexity level and risk

3

Almost the exact same change as #4301. The main difference between the V8 change and the WASM change is that for V8 we persist the hook functions (__call_view__, __call_view_anon__, etc.) and the hook receiver (recv / this) into V8 context embedder slots, and reconstruct them later from syscall scope.

Testing

  • Added a regression test in the form of a typescript smoketest that subscribes to a view and calls a procedure

@joshua-spacetime joshua-spacetime linked an issue Feb 16, 2026 that may be closed by this pull request
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.

Procedures don't trigger view changes

1 participant