mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Bundled output for commit 3537f76eab
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
8
js/dist-typings/common/utils/setRouteWithForcedRefresh.d.ts
vendored
Normal file
8
js/dist-typings/common/utils/setRouteWithForcedRefresh.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import Mithril from 'mithril';
|
||||
/**
|
||||
* Mithril 2 does not completely rerender the page if a route change leads to the same route
|
||||
* (or the same component handling a different route). This util calls m.route.set, forcing a reonit.
|
||||
*
|
||||
* @see https://mithril.js.org/route.html#key-parameter
|
||||
*/
|
||||
export default function setRouteWithForcedRefresh(route: string, params?: null, options?: Mithril.RouteOptions): void;
|
Reference in New Issue
Block a user