Glossary: Real-Time Apps with WebSockets
Effect cleanup
Also written: cleanup
The function an effect returns, which React runs when the component goes away. The board uses it to disconnect its socket so no extra connections are left behind.
Glossary: Real-Time Apps with WebSockets
Also written: cleanup
The function an effect returns, which React runs when the component goes away. The board uses it to disconnect its socket so no extra connections are left behind.