I am using getGroupsForUser in the onEnter function or a React Router Route definition
As long as I am navigating using the React Router built-in functions (push, replace) or <Link/> tags, all is good. But when I reload a page or try to access a page from its url, getGroupsForUser returns []
I am using
getGroupsForUser
in theonEnter
function or a React RouterRoute
definition As long as I am navigating using the React Router built-in functions (push
,replace
) or<Link/>
tags, all is good. But when I reload a page or try to access a page from its url,getGroupsForUser
returns[]