8000 Fix #25 - Pass options on diffObjects to have custom EqualsFn functio… · Wikodit/js-data-jsonapi-light@1962f26 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1962f26

Browse files
committed
Fix #25 - Pass options on diffObjects to have custom EqualsFn function to watch changes
1 parent dd86c79 commit 1962f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class JsonApiAdapter extends HttpAdapter{
9191
// current attributes.
9292

9393
// opts.changes = record.changes();
94-
opts.changes = utils.diffObjects(props, record._get('previous'), null);
94+
opts.changes = utils.diffObjects(props, record._get('previous'), opts);
9595
}
9696
}
9797

0 commit comments

Comments
 (0)
0