Closed msssk closed 5 years ago
looks good to me, if no external store is passed a context is created either by id or the default.
Looks good indeed; The issue just needs a little more context.
store
can still be undefined
here, but this.store
has been initialized one line before the if
. Because there was no store
provided to the contructor, the next thing to do is, assign this store a new context
. Its like @drcmda writes, either done with createNamedContext
or ProviderContext
depending on the given arguments (id
).
Lines 61-62 in store.js don't seem to make sense:
Should 61 be changed?