You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
This diff makes a few changes to the hook compatibility mode:
* It changes the name (internally to flow, and externally in the flowconfig) for the hook compatibility mode from `hooklike_functions` to `hook_compatibility` to better match how we refer to it. `hooklike_functions` still is available in the flowconfig for... compatibility (lol)
* It introduces a new flowconfig option, `experimental.component_syntax.hook_compatibility.excludes`, to disable compatibility mode in a directory. The converse, `experimental.component_syntax.hook_compatibility.includes`, already existed.
* It modifies the behavior of inclusion/exclusion so that files that are included in compatibility mode have their exports behave accordingly: a compatible module that has a function hook export will have that function hook be callable in excluded components.
Reviewed By: alexmckenley
Differential Revision: D55780714
fbshipit-source-id: 83a3a4a69bcaa4161251af39554ca9ff72b99b3e
0 commit comments