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
Hello. Thanks so much for the component. Am having an issue using the remove() method however. It works fine when I only have one of a model stored, but once I add two or more an error is thrown upon the call to remove().
For example if I store one record to /book/1 and then call MyModel.remove('/book/1'), it works just fine. However if I store one record to /book/1, and another record to /book/2, and THEN try and call MyModel.remove('/book/1') it throws the following error:
2017-04-16 01:41:42.721 [error][tid:com.facebook.react.AsyncLocalStorageQueue][RCTConvert.m:58] JSON value '(
"/book/2"
)' of type NSMutableArray cannot be converted to NSString
2017-04-16 01:41:42.729 [error][tid:com.facebook.react.AsyncLocalStorageQueue][RCTUtils.m:395]
Error: {
message = "Entries must be arrays of the form [key: string, value: string], got: (\n \"[\\\"/book/2\\\"]\"\n)";
}
Other than this the component works absolutely perfectly for my needs so I hope I am just doing something wrong or it's an easy fix. Let me know!
The text was updated successfully, but these errors were encountered:
Hello. Thanks so much for the component. Am having an issue using the
remove()
method however. It works fine when I only have one of a model stored, but once I add two or more an error is thrown upon the call toremove()
.For example if I store one record to
/book/1
and then callMyModel.remove('/book/1')
, it works just fine. However if I store one record to/book/1
, and another record to/book/2
, and THEN try and callMyModel.remove('/book/1')
it throws the following error:Other than this the component works absolutely perfectly for my needs so I hope I am just doing something wrong or it's an easy fix. Let me know!
The text was updated successfully, but these errors were encountered: