Skip to content

Commit

Permalink
Use proxied values
Browse files Browse the repository at this point in the history
  • Loading branch information
seyacat committed Jan 3, 2024
1 parent c961413 commit da5fd77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions reactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function Reactive(
path,
pathIds,
pathString,
value: value?._isReactive ? value._ : value,
value: value,
oldValue,
pathValues,
prefix: this._prefix,
Expand All @@ -140,7 +140,7 @@ function Reactive(
path,
pathIds,
pathString,
value: value?._isReactive ? value._ : value,
value: value,
oldValue,
pathValues,
prefix: this._prefix,
Expand Down
5 changes: 4 additions & 1 deletion test/reactive.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const chai = require("chai");
const assert = require("assert");

it("Reactive Basic", function () {
const games = Reactive();
const games = Reactive(null, { ignoreSameValue: true });
//SUBSCRIBE to test property changes
games.subscribe(
"test",
Expand All @@ -29,6 +29,9 @@ it("Reactive Basic", function () {
});
games.test2 = "OK";
games.test3 = "OK";

games.test4 = "OK";
games.test4 = "OK";
});

it("Reactive Multiple properties one subscription", function () {
Expand Down

0 comments on commit da5fd77

Please sign in to comment.