We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f39477b + d3a493b commit e5ca11bCopy full SHA for e5ca11b
packages/ra-core/src/dataProvider/useMutation.ts
@@ -327,8 +327,7 @@ const hasDeclarativeSideEffectsSupport = (
327
if (!options && !callTimeOptions) return false;
328
if (callTimeOptions && callTimeOptions.withDeclarativeSideEffectsSupport)
329
return true;
330
- if (options && options.withDeclarativeSideEffectsSupport) return true;
331
- return false;
+ return options && options.withDeclarativeSideEffectsSupport;
332
};
333
334
const sanitizeOptions = (args?: MutationOptions) => {
0 commit comments