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

Components declared with React.FC don't have their default props expressed through the editor UI #189

Open
itsdouges opened this issue Jan 9, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@itsdouges
Copy link
Collaborator

With the latest feature coming for default props being shown in the editor there is one edge case that isn't handled — components declared with React.FC won't have their default props shown when the element is "active".

Provider controls / component controls work as expected with React.FC components.

Find the test in type-infer.test.ts, there is a todo in there.

@itsdouges itsdouges added the Bug Something isn't working label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant