refactor: hoist finally blocks out of the way of React Compiler

React Compiler cannot lower a `try` with a `finalizer` clause, so it silently skipped optimizing every component and hook containing one — 13 sites, confirmed by running the compiler over `src/`. none of the guarded bodies return or rethrow, so running the cleanup after the `try`/`catch` is equivalent. three of the sites were empty `finally {}` leftovers and are just gone.

33bcfdf2 parent 9cda03b8 +12 −23
browse files