Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ssr: remove memoizeone dep and replace it with local function in locale #811

Conversation

dkilgore-eightfold
Copy link
Contributor

SUMMARY:

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:

  • Bugfix Pull Request
  • Feature Pull Request

TEST PLAN:

Pull the PR branch and run yarn and yarn storybook. Verify the ConfigProvider Locale story behaves as expected.

Copy link

codesandbox-ci bot commented Apr 9, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dkilgore-eightfold dkilgore-eightfold changed the title Dkilgore eightfold/improved ssr support in locale fix: ssr: remove memoizeone dep and replace it with local function in locale Apr 9, 2024
@dkilgore-eightfold dkilgore-eightfold merged commit 233f812 into EightfoldAI:main Apr 9, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants