abhiaiyer91 / apollo-storybook-decorator

Wrap your storybook environment with Apollo Client, provide mocks for isolated UI testing with GraphQL
332 stars 34 forks source link

Is this package still maintained? #139

Open joshdotblack opened 4 years ago

joshdotblack commented 4 years ago

Hey! Just a quick pulse-check on this package, is it still maintained/actively developed? I can't seem to get it running & I noticed there are a couple of pending PRs & issues with no response for the last half a year

LongLiveCHIEF commented 4 years ago

I'm not sure if this is maintained or not, but I've continued on with my own simple decorator, and I check this repo once a week to see if there has been any activity. What I've found is that you probably don't need this addon anymore if you use @storybook/addon-contexts

You can also just use a simple global decorator with ApolloProvider. I've written a simple example gist for this pattern

When I finish the example using the @storybook/addon-contexts I'll drop that here as well. (For example, this pattern will allow you to change the context to different types of users, or other business-logic based segmentations of your DSL)

shilman commented 4 years ago

@LongLiveCHIEF if you're using addon-contexts you should check out its replacement addon-toolbars which builds on the ideas from addon-contexts but otherwise IMHO is better in every way: https://github.com/storybookjs/storybook/tree/next/addons/toolbars

Danilo-Zekovic commented 4 years ago

It would be good to have deprecation flag if the package is not maintained anymore. I would also like to know if there is any plan on creating the support for @apollo/client V3? As of right now if you try to use it with it nothing works.

Also, it worries me that the project owner is not in the list of people watching it.

nratter commented 3 years ago

I'm not sure if this is maintained or not, but I've continued on with my own simple decorator, and I check this repo once a week to see if there has been any activity. What I've found is that you probably don't need this addon anymore if you use @storybook/addon-contexts

You can also just use a simple global decorator with ApolloProvider. I've written a simple example gist for this pattern

When I finish the example using the @storybook/addon-contexts I'll drop that here as well. (For example, this pattern will allow you to change the context to different types of users, or other business-logic based segmentations of your DSL)

Were you able to get Apollo Client working with @storybook/addon-contexts? If so, can you share your example?