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

Add CSF3 default render example #194

Merged
merged 1 commit into from
Jan 9, 2022
Merged

Conversation

shilman
Copy link
Member

@shilman shilman commented Jan 5, 2022

This supersedes #76 which attempted to add support for CSF3 default render functions. This is now supported by the core in 6.4, which means that no changes are needed in the Vite builder apparently. I added an example to test it out and am closing #76.

Documentation here https://storybook.js.org/docs/7.0/react/writing-stories/introduction#using-args

@eirslett
Copy link
Collaborator

eirslett commented Jan 5, 2022

LGTM!

@IanVS
Copy link
Member

IanVS commented Jan 5, 2022

Should we still be doing something when receiving a render action, as was done in #76? Right now I sometimes see, "render is not supported :(" in the console log.

@eirslett eirslett force-pushed the fix/add-default-render-example branch from f72f624 to 71bd093 Compare January 9, 2022 13:07
@eirslett
Copy link
Collaborator

eirslett commented Jan 9, 2022

LGTM, I think we can merge this! I rebased it on top of main (changing indent size from 4 to 2 leads to lots of merge conflicts...)

@eirslett eirslett merged commit fb289c1 into main Jan 9, 2022
@eirslett eirslett deleted the fix/add-default-render-example branch January 9, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants