Need help regarding mini cart referesh

Hello there,
i am adding product to cart then logout from my account and then login again but its not popuplating my localstorage current-cart value so i can not see item in cart, after then as i refreshing the page the localstorage get populated and i am getting item in mini cart, can anyone tell me how can we fully populate cart when user login.

Can you post your cart config here from your local.json?
Normally when you log in succesfully the cart gets pulled trough api/cart/create
I do remember a setting where you can turn this off.


Maybe the config.cart.synchronize in your local.json

These are our settings
“cart”: {
“bypassCartLoaderForAuthorizedUsers”: true,
“serverMergeByDefault”: true,
“serverSyncCanRemoveLocalItems”: true,
“serverSyncCanModifyLocalItems”: true,
“synchronize”: true,
“synchronize_totals”: true,
“setCustomProductOptions”: true,
“setConfigurableProductOptions”: true,
“askBeforeRemoveProduct”: true,
“displayItemDiscounts”: true,

}