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

pull/5072/head
charlie 2022-04-24 15:18:29 +08:00 committed by Andelf
parent e992e627ab
commit 3973f2794e
1 changed files with 3 additions and 1 deletions

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!
([]