Help on component in use server
and using form#action
#28317
Replies: 1 comment
-
Any reason why this was closed? Did you find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
This is a simple RSC component in NextJS. It uses server action, which will be a common approach in all react components in the future, and I've created a simple storybook
I'm having an issue with the rendered
action
value here.and ultimately, it may also cause some errors when rendering the component(since it might import backend-like package). In this case , inside
./actions
.I tried this approach but it didn't work. https://storybook.js.org/docs/writing-stories/mocking-modules#using-mocked-modules-in-stories
Can anyone help here? Or what would be your solution in case you've encountered this issue?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions