reactjs - 如何防止 goBack() 上的 react-router 刷新?
问题描述
我将BrowserRouter
fromreact-router
用于我的应用导航,但在后面是问题所在。我应该使用StaticRouter
吗?
我的代码:
import { BrowserRouter as Router, Route } from "react-router-dom";
...
<Router history={history} forceRefresh={false}>
...
解决方案
推荐阅读
- sql - 如何在上个月加入两个缺失行的表?
- iis-express - 更新 Visual Studio 2019 - 16.0.1 后无法运行 IIS Express
- c - 我可以将所有函数参数(相同的编号、类型和顺序)转发到另一个函数吗
- c# - INotifyPropertyChanged 和反序列化
- haskell - 如何在 ihaskell 笔记本中设置 OverloadedStrings?
- xaml - 带有文本框和文本块的自定义控件
- javascript - 从 Blueimps Jquery 文件上传中的下载模板中单击的段落中获取 id
- java - Java 在读取流时抛出 InvalidClassException
- error-handling - InvalidStateError:尝试使用不可用或不再可用的对象?
- python - 有没有办法将 matplotlib 制作的图形打印到 csv 中?