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

Is React.Suspense not supported? Needed for Relay v11.0.0 #14265

Closed
H-Huang opened this issue Mar 18, 2021 · 1 comment
Closed

Is React.Suspense not supported? Needed for Relay v11.0.0 #14265

H-Huang opened this issue Mar 18, 2021 · 1 comment

Comments

@H-Huang
Copy link

H-Huang commented Mar 18, 2021

Describe the bug
Using React.Suspense in a story causes the error Cannot convert a Symbol value to a string .

To Reproduce

// MainPage.stories.jsx
import React from "react";
import { Story, Meta } from "@storybook/react";
import MainPage from "../pages/MainPage";

export default {
  title: "Example/MainPage",
  component: MainPage,
  decorators: [
    (Story) => (
      <React.Suspense fallback={null}>
        <Story />
      </React.Suspense>
    ),
  ],
} as Meta;

const Template: Story = (args) => <MainPage {...args} />;
export const MyStory= Template.bind({});

Screenshots
image

System

Environment Info:

System:
OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster)
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 14.11.0 - /usr/local/bin/node
Yarn: 1.22.5 - /usr/bin/yarn
npm: 6.14.8 - /usr/local/bin/npm
npmPackages:
@storybook/addon-actions: ^6.1.20 => 6.1.21
@storybook/addon-essentials: ^6.1.20 => 6.1.21
@storybook/addon-links: ^6.1.20 => 6.1.21
@storybook/node-logger: ^6.1.20 => 6.1.21
@storybook/preset-create-react-app: ^3.1.6 => 3.1.7
@storybook/react: ^6.1.20 => 6.1.21

Additional context
I'm still new to and exploring both Storybook and Relay so if I'm missing something let me know. If there is any additional information about storybook that is specific for Relay would love to know about it!

@shilman
Copy link
Member

shilman commented Mar 18, 2021

closing as dupe to #11554, which has a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants