Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class MyComponent extends React.Component {
- componentDidUpdate(prevProps: PersonMatchingHomeProps) {
- const { results, isLoading } = this.props;
- if ((isLoading === prevProps.isLoading && prevProps.results === results) || isLoading) {
- return;
- }
- // do stuff
- }
- render() {
- return <Spinner show/>;
- }
- }
Add Comment
Please, Sign In to add comment