storybookjs/storybook

[Bug]: Composition - initial loading state looks like the error state

Open

#21.509 geöffnet am 9. März 2023

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (89.909 Stars) (10.058 Forks)batch import
bugcompositionhelp wantedsev:S3

Beschreibung

Describe the bug

When compositing a ref it looks like it's initially erroring, then loads anyway.

When there's an actual error (reported the CORS error in #21501 and #21500 ) it can get stuck in the loading state, and not show the error state.

When trying to compose https://59c59bd0183bd100364e1d57-jjsanukdmo.chromatic.com/ (private Chromatic from Chromatic) I get the following error on the browser:

Access to fetch at 'https://59c59bd0183bd100364e1d57-jjsanukdmo.chromatic.com/index.json' from origin 'http://localhost:6006/' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.

Additionally, the sidebar and tooltip stay in an infinite loading state

To Reproduce

  • add a ref
  • load the storybook
  • look at the sidebar as storybook loads

System

No response

Additional context

No response

Contributor Guide