Skip to content

issue: subscription triggers twice when field is also being watched #13206

@leon-wbr

Description

@leon-wbr

Version Number

7.68.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/react-ts

Steps to reproduce

Set up a subscription using subscribe() with specified names and check how many times the callback triggers for watched fields, either I am misunderstanding the API or the renders are triggering for watched fields.

Expected behaviour

Only one event per field that is being subscribed to.

What browsers are you seeing the problem on?

Firefox

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions