Skip to content

Commit c0a2e42

Browse files
committed
~ Refactor to use consistent internal store set
1 parent 1fcbd71 commit c0a2e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/2n8.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function createStore<Store extends TwoAndEight>(
140140
}
141141
const initialValue = getInitialState()[field]
142142
if (initialValue !== undefined) {
143-
// TODO use Reflect here?
143+
Reflect.set(store, field, initialValue)
144144
store[field] = initialValue
145145
}
146146
} else {

0 commit comments

Comments
 (0)