axios-actions icon indicating copy to clipboard operation
axios-actions copied to clipboard

custom Plugins blocked

Open DreadCube opened this issue 5 years ago • 0 comments

Hi guys! I would like to add a custom plugin to the existing plugins. This should work as far i saw from the docs:

// add to global plugins
import { plugins } from 'axios-actions'
plugins.changeCase = changeCase

but exports.plugins is not extandable. Im getting a error message in the browser: TypeError: Cannot add property changeCase, object is not extensible looks like, exports.plugins is marked as Readonly.

"axios-actions": "^4.0.2",

DreadCube avatar Apr 15 '20 12:04 DreadCube