Skip to content

Commit

Permalink
Add a runtime feature flag for prefixing read-time resolver storageKeys
Browse files Browse the repository at this point in the history
Reviewed By: captbaritone

Differential Revision: D66193115

fbshipit-source-id: 8c4d8c2cff63674443c5b135de3d4b4712c5e7bb
  • Loading branch information
evanyeung authored and facebook-github-bot committed Nov 19, 2024
1 parent 097b229 commit 30af003
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/relay-runtime/util/RelayFeatureFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export type FeatureFlags = {

// Temporary flag to experiment to enable compatibility with React's unstable <Activity> API
ENABLE_ACTIVITY_COMPATIBILITY: boolean,

// Adds a prefix to the storage key of read time resolvers. This is used to
// disambiguate the same resolver being used at both read time and exec time.
ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX: boolean,
};

const RelayFeatureFlags: FeatureFlags = {
Expand All @@ -76,6 +80,7 @@ const RelayFeatureFlags: FeatureFlags = {
MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD: false,
ENABLE_CYLE_DETECTION_IN_VARIABLES: false,
ENABLE_ACTIVITY_COMPATIBILITY: false,
ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX: true,
};

module.exports = RelayFeatureFlags;

0 comments on commit 30af003

Please sign in to comment.