We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fcbd71 commit c0a2e42Copy full SHA for c0a2e42
src/2n8.ts
@@ -140,7 +140,7 @@ export function createStore<Store extends TwoAndEight>(
140
}
141
const initialValue = getInitialState()[field]
142
if (initialValue !== undefined) {
143
- // TODO use Reflect here?
+ Reflect.set(store, field, initialValue)
144
store[field] = initialValue
145
146
} else {
0 commit comments