mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
9ca2911799
The previous error message was generic, because the old style function signature didn't support a way to specify a reason alongside a freeze effect. This meant we could only say why a value was frozen for instructions, but not hooks which use function signatures. By defining a new aliasing signature for custom hooks we can specify a reason and provide a better error message.