Skip to content

Commit a86850e

Browse files
committed
forceupdate added
1 parent 18f0fa3 commit a86850e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/App.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ export default function App() {
211211
}
212212
}
213213

214+
useEffect(() => {
215+
if (!needRefresh) {
216+
update()
217+
}
218+
}, [location])
219+
214220
useEffect(() => {
215221
if (needRefresh) {
216222
onUpdate()

0 commit comments

Comments
 (0)