Skip to content

Add a new coding guideline forbidding the use of unwrap() as it violates the rule of hooks #3188

Closed
@leafty

Description

@leafty

Async code in react hooks create a lot of nasty race conditions which are hard to handle correctly. Using .unwrap() on RTK query hooks if one of these cases of should be forbidden.

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