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

Remove reference to window.localstorage from Session constructor #2159

Merged
merged 1 commit into from
May 25, 2022

Conversation

ajacksified
Copy link
Contributor

@ajacksified ajacksified commented May 25, 2022

A temporary fix was put into place in 3fd7bb4 which cleared a localstorage value set by a temporary ESS session restoration workflow. This caused window to be accessed in the session constructor, which caused issues with server-side rendering.

The localstorage value no longer needs to be cleared as it is unused, so this line has been removed.

This PR fixes bug #.

  • I've added a unit test to test for potential regressions of this bug.
  • The changelog has been updated, if applicable.
  • Commits in this PR are minimal and have descriptive commit messages.

@ajacksified ajacksified requested a review from a team as a code owner May 25, 2022 13:12
@codesandbox-ci
Copy link

codesandbox-ci bot commented May 25, 2022

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.

Latest deployment of this branch, based on commit 9ce46c4:

Sandbox Source
inrupt/solid-client-authn-js Configuration

@vercel vercel bot temporarily deployed to Preview May 25, 2022 13:15 Inactive
A temporary fix was put into place in
3fd7bb4 which cleared a localstorage
value set by a temporary ESS session restoration workflow. This caused
window to be accessed in the session constructor, which caused issues
with server-side rendering.

The localstorage value no longer needs to be cleared as it is unused,
so this line has been removed.
@ajacksified ajacksified force-pushed the fix/remove-window-from-constructor branch from 55b96fe to 9ce46c4 Compare May 25, 2022 13:15
@ajacksified ajacksified temporarily deployed to ESS Production May 25, 2022 13:15 Inactive
@ajacksified ajacksified temporarily deployed to ESS Production May 25, 2022 13:15 Inactive
@ajacksified ajacksified temporarily deployed to ESS Dev-Next May 25, 2022 13:15 Inactive
@ajacksified ajacksified temporarily deployed to ESS Dev-Next May 25, 2022 13:15 Inactive
@vercel vercel bot temporarily deployed to Preview May 25, 2022 13:18 Inactive
Copy link
Contributor

@matthieubosquet matthieubosquet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ajacksified ajacksified merged commit 11246cd into main May 25, 2022
@ajacksified ajacksified deleted the fix/remove-window-from-constructor branch May 25, 2022 13:30
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