Skip to content

2.0.0-beta.14: isPending is false for deep(optimisticStore) transition #2718

@maciek50322

Description

@maciek50322

Describe the bug

isPending(() => deep(optimisticStore))

is false when optimisticStore is during transition, only becomes true when optimisticStore is refreshed

Your Example Website or App

https://s.olid.uk/id/ECUPBmFWSvOdd6u2hqtpRg

Steps to Reproduce the Bug or Issue

  1. Go to link
  2. Click the button
  3. See that Count changed immediately (via optimistic update), but isPending(() => deep(optimisticStore)) doesn't change immediately, it waits for refresh, only when refreshing it's true

Expected behavior

isPending(() => deep(optimisticStore)) should be true for transition too

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 2.0.0-beta.14

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions