Skip to content

fix(class): history.replaceState member expression#318

Open
tbranyen wants to merge 1 commit intoreactjs:masterfrom
tbranyen:fix-replace-state-check
Open

fix(class): history.replaceState member expression#318
tbranyen wants to merge 1 commit intoreactjs:masterfrom
tbranyen:fix-replace-state-check

Conversation

@tbranyen
Copy link

@tbranyen tbranyen commented Feb 7, 2024

In our code we have the following:

this.context.history.replaceState()

The deprecated APIs check only looks for history.replaceState. This fix makes the check more robust, by taking into account member expression types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant