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

Can't use complex component parameters #80

Closed
hugoattal opened this issue May 3, 2022 · 0 comments · Fixed by #81
Closed

Can't use complex component parameters #80

hugoattal opened this issue May 3, 2022 · 0 comments · Fixed by #81
Assignees
Labels
enhancement New feature or request

Comments

@hugoattal
Copy link
Collaborator

hugoattal commented May 3, 2022

Since we're syncing the state from the app to the iframe, we can't use complex parameters (recursive, for example) as component parameters.

image

A simple suggestion to solve this issue would be to be able to add a "native" option to layout and inject directly the story inside the app without an iframe (just like the display grid).

Example:

<template>
  <Story :layout="{type: 'native'}">
    <MyComponent />
  </Story>
</template>

I'm not sure about the "native" wording, but the idea is there.

@hugoattal hugoattal added the enhancement New feature or request label May 3, 2022
@hugoattal hugoattal self-assigned this May 3, 2022
@hugoattal hugoattal changed the title Can't use functions as component parameters Can't use complex component parameters May 3, 2022
@Akryum Akryum closed this as completed in #81 May 3, 2022
Akryum added a commit that referenced this issue May 3, 2022
Akryum added a commit that referenced this issue May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant