Skip to content

enhance: optimistic rollback on failed vote #14

@Yentec

Description

@Yentec

useOptimistic doesn't roll back automatically if toggleVote fails — the optimistic state persists until the next refresh. Trigger router.refresh() in the error branch so a failed vote visually reverts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions