Przeglądaj źródła

keep add and remove the same (#25277)

tags/2.0.0-beta.2^2
Asuka Minato 1 miesiąc temu
rodzic
commit
27bf244b3b
No account linked to committer's email address

+ 1
- 3
web/app/components/plugins/marketplace/plugin-type-switch.tsx Wyświetl plik

}, [showSearchParams, handleActivePluginTypeChange]) }, [showSearchParams, handleActivePluginTypeChange])


useEffect(() => { useEffect(() => {
window.addEventListener('popstate', () => {
handlePopState()
})
window.addEventListener('popstate', handlePopState)
return () => { return () => {
window.removeEventListener('popstate', handlePopState) window.removeEventListener('popstate', handlePopState)
} }

Ładowanie…
Anuluj
Zapisz