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(storybook): handle intermediate null state for sidebar #18243

Closed
wants to merge 2 commits into from

Conversation

thmsobrmlr
Copy link
Contributor

Problem

See #17731 (comment).

Changes

This PR gracefully handles an intermediate null state when initializing the sidebar.

How did you test this code?

Tested locally

@thmsobrmlr thmsobrmlr requested a review from a team October 27, 2023 11:49
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@Twixes
Copy link
Member

Twixes commented Oct 27, 2023

Ohh, I missed that you made this PR @thmsobrmlr I made #18251 in the meantime. That one solves this by setting the feature flag earlier in the story's lifecycle.

@thmsobrmlr
Copy link
Contributor Author

Thanks @Twixes. Your fix is actually better. Closing this.

@thmsobrmlr thmsobrmlr closed this Oct 27, 2023
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.

4 participants