1
0
Fork 1
forked from fedi/mastodon

Fix wasteful request to /api/v1/custom_emojis when not logged in (#22326)

This commit is contained in:
Claire 2022-12-15 14:07:34 +01:00 committed by talon
parent 53ee2e1890
commit 05dbf5a792

View file

@ -23,7 +23,9 @@ export const store = configureStore();
const hydrateAction = hydrateStore(initialState);
store.dispatch(hydrateAction);
store.dispatch(fetchCustomEmojis());
if (initialState.meta.me) {
store.dispatch(fetchCustomEmojis());
}
const createIdentityContext = state => ({
signedIn: !!state.meta.me,