Debouce the event listener on popstate

Created on 17 July 2024, 5 months ago

Problem/Motivation

In our case we are getting the js error "alerts is undefined", like on provided screenshot. This error is happening only of FireFox browser.

Steps to reproduce

That error is returned if the call is done a lot of times in a short amount of time and it's cancelling/overlapping with each other. This is happening because when the page loads and there are a lot of history changes that triggers the initAlert method.

Proposed resolution

Debouce the event listener on popstate or make a setting for this behavior.

πŸ› Bug report
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine cmd87

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024