fix: page crash when navigating to home if default home is a custom page #5060

This commit is contained in:
charlie
2022-04-24 15:18:29 +08:00
committed by Andelf
parent e992e627ab
commit 3973f2794e

View File

@@ -17,7 +17,9 @@
:or {push true}}]
(let [route-fn (if push rfe/push-state rfe/replace-state)]
(state/save-scroll-position! (util/scroll-top))
(route-fn to path-params query-params)))
(route-fn to path-params query-params))
;; force return nil for usage in render phase of React
nil)
(defn redirect-to-home!
([]