pl-fe: do not prefetch custom emojis when unauthenticated
Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
@ -387,6 +387,8 @@ const UI: React.FC<IUI> = ({ children }) => {
|
||||
const loadAccountData = () => {
|
||||
if (!account) return;
|
||||
|
||||
prefetchCustomEmojis(client);
|
||||
|
||||
dispatch(fetchDraftStatuses());
|
||||
|
||||
dispatch(fetchHomeTimeline());
|
||||
@ -445,7 +447,6 @@ const UI: React.FC<IUI> = ({ children }) => {
|
||||
// The user has logged in
|
||||
useEffect(() => {
|
||||
loadAccountData();
|
||||
prefetchCustomEmojis(client);
|
||||
}, [!!account]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user