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

Web vitals score not visible when navigating to a component #15

Open
alasdair009 opened this issue Jul 7, 2022 · 0 comments
Open

Web vitals score not visible when navigating to a component #15

alasdair009 opened this issue Jul 7, 2022 · 0 comments

Comments

@alasdair009
Copy link

alasdair009 commented Jul 7, 2022

When navigating to a component through the Storybook interface and choosing the canvas view the web vitals score does not show up at all, however when navigating directly there it is displayed.

Recreation Steps

  1. Add web-vitals to a React based storybook project with at least two separate component stories
  2. Navigate to one of these stories using the Storybook navigation
  3. Click "canvas" view tab
  4. Observe the vital score is not shown
  5. Interact with the component (or trigger a layout shift)
  6. Observe the vital score is shown (see image)

vital score not shown when navigating to component


If the component is loaded directly via a link the score is shown (see image).

vital score shown when going directly to canvas

Storybook version: 6.5.9

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

No branches or pull requests

1 participant