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

pull/22134/head
Claire 2 years ago committed by GitHub
parent 78ef635980
commit 1f762f4271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,

Loading…
Cancel
Save