Skip to content

Commit 4690ff6

Browse files
committed
feat: Allow configuring response callbacks via init
1 parent aecee81 commit 4690ff6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/init/initJsonApiPlugin.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export function initJsonApiPlugin (config) {
2929
api.setErrorCallbacks(config.errorCallbacks)
3030
}
3131

32+
if (checkConfigProperty(config, 'responseCallbacks', false)) {
33+
api.setResponseCallbacks(config.responseCallbacks)
34+
}
35+
3236
let apiModulesToRegister = []
3337
if (checkConfigProperty(config, 'apiModules', false)) {
3438
apiModulesToRegister = config.apiModules

0 commit comments

Comments
 (0)