You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that Schema.prototype.registerAllKeys tries to call forEach on an a plain object. Apparently there is a discrepancy between what the function expects as data and what LocalStorageSource actually provides. Specifically, the function seems to expect an array for each model while LocalStorageSource provides an object mapping ids to model objects.
The text was updated successfully, but these errors were encountered:
When trying to load existing data from
LocalStorageSource
, I'm getting anundefined is not a function
in this line: https://github.com/orbitjs/orbit.js/blob/master/lib/orbit-common/schema.js#L418The problem is that
Schema.prototype.registerAllKeys
tries to callforEach
on an a plain object. Apparently there is a discrepancy between what the function expects asdata
and whatLocalStorageSource
actually provides. Specifically, the function seems to expect an array for each model whileLocalStorageSource
provides an object mapping ids to model objects.The text was updated successfully, but these errors were encountered: