memoize-one dep contains a line referencing globalThis and falls back to global and self. This was incompatible with SSR, so I replaced it with logic that accomplishes the same memoization goal.
JIRA TASK (Eightfold Employees Only):
ENG-85282
CHANGE TYPE:
[x] Bugfix Pull Request
[ ] Feature Pull Request
TEST PLAN:
Pull the PR branch and run yarn and yarn storybook. Verify the ConfigProviderLocale story behaves as expected.
SUMMARY:
memoize-one
dep contains a line referencingglobalThis
and falls back toglobal
andself
. This was incompatible with SSR, so I replaced it with logic that accomplishes the same memoization goal.JIRA TASK (Eightfold Employees Only):
ENG-85282
CHANGE TYPE:
TEST PLAN:
Pull the PR branch and run
yarn
andyarn storybook
. Verify theConfigProvider
Locale
story behaves as expected.