keep add and remove the same (#25277)
This commit is contained in:
parent
9b8a03b53b
commit
27bf244b3b
1 changed files with 1 additions and 3 deletions
|
|
@ -82,9 +82,7 @@ const PluginTypeSwitch = ({
|
|||
}, [showSearchParams, handleActivePluginTypeChange])
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener('popstate', () => {
|
||||
handlePopState()
|
||||
})
|
||||
window.addEventListener('popstate', handlePopState)
|
||||
return () => {
|
||||
window.removeEventListener('popstate', handlePopState)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue