Closed Mati365 closed 2 years ago
https://github.com/vobyjs/voby/blob/d685d6079bb0172339d26535a551842545c70ab3/src/hooks/use_timeout.ts#L15
Maybe it will be better to use there (and in other places) "safe closure" approach? It is described here: https://dmitripavlutin.com/react-hooks-stale-closures/
How do you propose that code should be changed? And I guess what would that change bring to the table?
Happy to reopen once a material suggestion is made.
https://github.com/vobyjs/voby/blob/d685d6079bb0172339d26535a551842545c70ab3/src/hooks/use_timeout.ts#L15
Maybe it will be better to use there (and in other places) "safe closure" approach? It is described here: https://dmitripavlutin.com/react-hooks-stale-closures/