setQueryData old data type
I'm not sure if I'm doing this correctly - but
old will always be defined - or will it? Should I have to account for old being undefined as per the type error? In what case would this be undefined?