Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const StateMachinesDetails = props => {
const dataLocale = useApplicationContext(context => context.dataLocale);
const dispatch = useDispatch();
const fetcher = React.useCallback(
(...args) => dispatch(fetchStateMachine(...args)),
[dispatch]
);
const showApiErrorNotification = useShowApiErrorNotification();
return (
{({ isLoading, data, error }) => {
if (isLoading) {
return ;
}
if (error) {
return null;
}
return (