A
A
Andrey Okhotnikov2021-04-29 20:55:39
React
Andrey Okhotnikov, 2021-04-29 20:55:39

Disable component unmount?

What are the ways to disable unmounting of a component? It is required to check through the dialog box.
Routes don't change, browser window stays open

useEffect(() => {
    return () => {
//Отменить размонтирование
}
  }, []);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question