octue / planex-site

The octue website front end
https://planex-site.vercel.app
0 stars 0 forks source link

useStaticQuery not working inside stories #2

Closed thclark closed 2 years ago

thclark commented 3 years ago

Bug report

What is the current behavior?

As described here - watch that page for details.

What is the expected behavior?

Storybooks should be able to render pre-fetched static data.

Workaround

At present we can only write stories for components that do not use the useStaticQuery hook (i.e. presentational components). That's pretty much fine, because for whole pages we can simply use the gatsby develop server anyhow.

thclark commented 2 years ago

Closing this as won't fix because it's not affecting our development really.