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

[RFR] Add useCreateController hook #3409

Merged
merged 7 commits into from
Jul 13, 2019
Merged

[RFR] Add useCreateController hook #3409

merged 7 commits into from
Jul 13, 2019

Conversation

fzaninotto
Copy link
Member

import { useCreateController } from 'react-admin';
import CreateView from './CreateView';

const MyCreate = props => {
    const controllerProps = useCreateController(props);
    return <CreateView {...controllerProps} {...props} />;
}

@fzaninotto fzaninotto added this to the 3.0.0 milestone Jul 13, 2019
Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@djhi djhi merged commit 022650c into next Jul 13, 2019
@djhi djhi deleted the useCreateController branch July 13, 2019 18:04
@fzaninotto fzaninotto mentioned this pull request Jul 14, 2019
40 tasks
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.

2 participants