Don't use closures in DevTools injection (#18278)
* Don't use closures in DevTools injection Nested closures are tricky. They're not super efficient and when they share scope between multiple closures they're hard for a compiler to optimize. It's also unclear how many versions will be created. By hoisting things out an just make it simple calls the compiler can do a much better job. * Store injected hook to work around fast refresh
S
Sebastian Markbåge committed
b014e2d5e377a94bbf8d94d9a2602ce05c184e38
Parent: 5474a83
Committed by GitHub <noreply@github.com>
on 4/9/2020, 12:57:17 AM