Enable hooks in www build (#14116)
The `enableHooks` feature flag used to only control whether the API was exposed on the React package. But now it also determines if the dispatcher and implementation are included in the bundle. We're using hooks in www, so I've switched the feature flag to `true` in the www build. (Alternatively, we could have two feature flags: one for the implementation and dispatcher, and one for exposing the API on the React package.)
Andrew Clark committed
Nov 5, 2018 at 17:48 UTC
0a0f503d57d54c028639a5c052c658275d25e706
1 file changed
+1
-1
packages/shared/forks/ReactFeatureFlags.www.js
+1
-1
@@ -21,7 +21,7 @@ export const {
21
} = require('ReactFeatureFlags');
22
23
// The rest of the flags are static for better dead code elimination.
24
-export const enableHooks = false;
24
+export const enableHooks = true;
25
26
// In www, we have experimental support for gathering data
27
// from User Timing API calls in production. By default, we