Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jul 23, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tanstack/[email protected]

Patch Changes

  • Fix UI responsiveness issue with rapid user interactions in collections (#308)

    Fixed a critical issue where rapid user interactions (like clicking multiple checkboxes quickly) would cause the UI to become unresponsive when using collections with slow backend responses. The problem occurred when optimistic updates would back up and the UI would stop reflecting user actions.

    Root Causes:

    • Event filtering logic was blocking ALL events for keys with recent sync operations, including user-initiated actions
    • Event batching was queuing user actions instead of immediately updating the UI during high-frequency operations

    Solution:

    • Added triggeredByUserAction parameter to recomputeOptimisticState() to distinguish user actions from sync operations
    • Modified event filtering to allow user-initiated actions to bypass sync status checks
    • Enhanced emitEvents() with forceEmit parameter to skip batching for immediate user action feedback
    • Updated all user action code paths to properly identify themselves as user-triggered

    This ensures the UI remains responsive during rapid user interactions while maintaining the performance benefits of event batching and duplicate event filtering for sync operations.

@tanstack/[email protected]

Patch Changes

@tanstack/[email protected]

Patch Changes

@tanstack/[email protected]

Patch Changes

@tanstack/[email protected]

Patch Changes

  • Add Svelte support (#91)

    Usage example:

    <script lang="ts">
    import { useLiveQuery } from "@tanstack/svelte-db"
    import { eq } from "@tanstack/db"
    import { todoCollection } from "$lib/collections"
    
    const todosQuery = useLiveQuery((query) =>
      query
        .from({ todos: todoCollection })
        .where(({ todos }) => eq(todos.completed, false))
    )
    </script>
```

@tanstack/[email protected]

Patch Changes

@tanstack/[email protected]

Patch Changes

@tanstack/[email protected]

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch from 1986f82 to 73a56b2 Compare July 23, 2025 19:20
@KyleAMathews KyleAMathews merged commit 8714f94 into main Jul 23, 2025
@KyleAMathews KyleAMathews deleted the changeset-release/main branch July 23, 2025 19:21
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