-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Update or expose maxDepth for telejson #9534
Comments
I initially thought this was part of: But now I think it's actually: |
Can you tell us a bit more about the data you are sending over @ArrayKnight? |
This is already possible: storybook/addons/actions/src/preview/action.ts Lines 13 to 32 in 2046e90
storybook/lib/channels/src/index.ts Lines 71 to 79 in 341fc2d
storybook/lib/channel-postmessage/src/index.ts Lines 62 to 71 in 7e18c2e
|
@tmeasday I'm sending through a DocumentNode which is created with a @ndelangen I'll have to give this a closer look. Is this documented anywhere? |
@ndelangen I'm seeing how you'd be able to set the depth manually for each emit but this doesn't appear to be configurable for the issue I'm having. In a story:
In my decorator:
In my panel:
I've been unable to find a way to configure the max depth so that the parameters maintains all data. Now that I know about manually applying options to each message, I could in theory pass the parameters through the channel from the decorator to the panel, but that doesn't feel like what I'm supposed to do. Also, it would be really helpful if the |
@tmeasday To help clarify why I couldn't just send the query as a string over, the |
I see, the depth in parameters isn't enough for your usecase. |
@ArrayKnight you could stringify the I'm sure it would be better to be able to control telejson, but essentially that'd be the same thing, no? |
That's what I'm having to do currently. But because I'm running into this issue as part of a Storybook addon, it means anybody that wants to use the addon has to do this extra step. My ideal would be to have the addon control telejson so that the end user implementation is as simple as possible. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Is your feature request related to a problem? Please describe.
I'm working on building an addon and when trying to pass graphql-tag DocumentNode(s) through parameters, data is lost (stringified) at a certain depth and queries are rendered useless.
Describe the solution you'd like
I'd like to be able to set the max depth (via register config?)
Describe alternatives you've considered
I also tried to avoid using the useParameter hook and to pass the parameter through the channel from decorator to panel. But it seems to have the same issue since all data in coming from the same store.
An alternative would be to find a solution that has an extreme or "infinite" max depth
Are you able to assist bring the feature to reality?
Not right now
The text was updated successfully, but these errors were encountered: