Skip to content

[bug]: Invalid auth middleware clearTimeout implementation #4377

Open
@rafalslowik

Description

Describe the bug

Invalid auth middleware clearTimeout implementation. Function clearTimeout accept number type, not array as is.

To reproduce

Steps to reproduce the behavior:

  • Impossible to reproduce. Found it when checking how function work.

Expected behavior

Cleared timeout to avoid memory leak.

Screenshots

Image

Possible solutions

Use array destructuring on Map to get valid number type field to clear interval.

Image

Debug Report

Please complete the following device information:

Please let us know what packages this bug is in regards to:

  • venia-concept
  • venia-ui
  • pwa-buildpack
  • peregrine
  • pwa-devdocs
  • upward-js
  • upward-spec
  • create-pwa

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions