replace unstable_useBlocker

This commit is contained in:
proddy
2023-11-16 22:07:42 +01:00
parent 64471e4c0e
commit edee463ade
5 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import { useRequest, type Method } from 'alova';
import { useState } from 'react';
import { unstable_useBlocker as useBlocker } from 'react-router-dom';
import { useBlocker } from 'react-router-dom';
import { toast } from 'react-toastify';
import { useI18nContext } from 'i18n/i18n-react';