Skip to content

Conversation

@mikearnaldi
Copy link
Contributor

Summary

  • Add a test to verify that subscriptionRef atoms properly recompute when their dependencies change
  • This test was added based on a user report that subscriptionRef atoms do not recompute when dependencies accessed via get.some() change

The test currently passes, indicating the basic behavior works correctly. If the user can provide more details about their specific setup, we can extend the test to reproduce the issue.

@mikearnaldi mikearnaldi force-pushed the fix/subscriptionref-recompute-derived-state branch from 3fbe293 to 206694f Compare December 3, 2025 12:54
@mikearnaldi mikearnaldi changed the title test: add test for subscriptionRef recomputation with derived state test(don't merge): add test for subscriptionRef recomputation with derived state Dec 3, 2025
Add a test to verify that subscriptionRef atoms properly recompute when
their dependencies change. This test was added based on a user report
that subscriptionRef atoms don't recompute when dependencies accessed
via get.some() change.

The test verifies that both regular derived atoms and subscriptionRef
atoms correctly recompute when an Option dependency changes value.
@mikearnaldi mikearnaldi force-pushed the fix/subscriptionref-recompute-derived-state branch from 206694f to 41ebf1b Compare December 3, 2025 13: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.

1 participant