Skip to content

If revalidateOnFocus and suspense are used together, when an error occurs onfoucs listeners are never cleaned up #1093

@gaoxiaoliangz

Description

@gaoxiaoliangz

Bug report

Description / Observed Behavior

If revalidateOnFocus and suspense are used together, when an error occurs onfoucs listeners are never cleaned up

Expected Behavior

When errors are caught in error boundary, onfocus listeners are cleaned up, a page refocus never triggers a revalidation.

Additional Context

SWR version: 0.5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions