HF RL Explorer

history.push / history.replace 类型不接受 location 对象

history.push / history.replace 类型不接受 location 对象: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). history.push / history.replace 类型不接受 location 对象 history v4 的 API 允许我用两种方式调用 push 和 replace:传一个 path 字符串(加可选 state),或者直接传一个 location 对象,例如: 第二种调用是 history 库官方文档里推荐的用法(在需要同时指定…

The task

history.push / history.replace 类型不接受 location 对象 history v4 的 API 允许我用两种方式调用 push 和 replace:传一个 path 字符串(加可选 state),或者直接传一个 location 对象,例如: 第二种调用是 history 库官方文档里推荐的用法(在需要同时指定 pathname/search/hash 时很常见,react-router 内部也是这么用的),运行时完全正常,但当前 flow-typed 里 BrowserHistory /…

Part of XiaomiMiMo/MiMo-V2.6-RL-oss.