-
- Your app version is pretty old, and the server doesn’t know how to speak
- to it anymore. {actionRequestMessage}.
-
+ {message}
);
}
function MinVersionHandler(): null {
const connections = useSelector(allConnectionInfosSelector);
const isClientVersionUnsupported = React.useMemo(() => {
const connectionIssues = Object.values(connections).map(
connection => connection?.connectionIssue,
);
return connectionIssues.includes('client_version_unsupported');
}, [connections]);
const hasShownModalRef = React.useRef(false);
const { pushModal } = useModalContext();
React.useEffect(() => {
if (isClientVersionUnsupported && !hasShownModalRef.current) {
hasShownModalRef.current = true;
pushModal(