Open noobling opened 4 years ago
I faced the same problem and I resolved it by explictly passing Provider
in plugin options in Storybook config.js
file:
import { ApolloProvider } from "@apollo/react-hooks";
addDecorator(
apolloStorybookDecorator({
typeDefs: schema,
mocks,
Provider: ApolloProvider,
}),
);
Worked for me, thank you @goooseman. Not quite sure as to why you need to specify a hooks provider, shouldn't the package by default set this up?
Test code
My Comp
Error
Any help appreciated