-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove strapi prop getter #1701
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: khallad2 <[email protected]>
Signed-off-by: khallad2 <[email protected]>
Signed-off-by: khallad2 <[email protected]>
Signed-off-by: khallad2 <[email protected]>
I know it's in draft, but you can check the possibility to use the custom option. So we can reuse the props type of component to validate the data from strapi. I know it might not work in all components, but in a few components we can do it and we avoid to create two objects for the component, one for the schema and another for props of the component. Example:
|
Signed-off-by: khallad2 <[email protected]>
Signed-off-by: khallad2 <[email protected]>
|
[Refactor] Move codebase away from getXXXProps() paradigm