You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to continue our discussion around adding a 2nd optional parameter to mutate to pass additional information/options that might be needed by different 'plugins' (eg. devtools). I'm proposing the following (basically allow each plugin to reserve one slot in the option object):
type Option = {
// ... core options
// plugin options
pluginA?: {
isDevMode: boolean,
},
pluginB?: {
mutationName: string,
},
};
// Could also use Symbol to reserve the slot when flow supports it
The text was updated successfully, but these errors were encountered:
Just to continue our discussion around adding a 2nd optional parameter to
mutate
to pass additional information/options that might be needed by different 'plugins' (eg. devtools). I'm proposing the following (basically allow each plugin to reserve one slot in the option object):The text was updated successfully, but these errors were encountered: