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 useShowController hook #3406

Merged
merged 1 commit into from
Jul 12, 2019
Merged

[RFR] Add useShowController hook #3406

merged 1 commit into from
Jul 12, 2019

Conversation

fzaninotto
Copy link
Member

import { useShowController } from 'react-admin';
import ShowView from './ShowView';

const MyShow = props => {
    const controllerProps = useShowController(props);
    return <ShowView {...controllerProps} {...props} />;
}

@fzaninotto fzaninotto added this to the 3.0.0 milestone Jul 12, 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 0b5597c into next Jul 12, 2019
@djhi djhi deleted the useShowController branch July 12, 2019 18:21
@fzaninotto fzaninotto mentioned this pull request Jul 13, 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