export const userSlice = createSlice({
name: "user",
initialState: {
info: {
dob: null,
}
}
})
What if the dob
property is updated but the reference that info
is pointing to is not changed? Would this cause a component which depends on user.info.dob
to re render?