I have a set of mutations that trigger the local state of certain types of popups. They\'re generally set up like this:
openDialog: (_, variables, { cache }) =
The fix for this turned out to work by treating the dialog
field as a string instead of an object. Changing the function to this did the trick and made the errors go away:
openDialog: (_, variables, { cache }) => {
const data = {
popups: {
...popups,
dialog: variables.type
}
};
cache.writeData({
data: data
});
return null;
}