realm - javascript ream.close() not closing, stopped
问题描述
I am using Realm Database to store data for page navigation in my react native application.The below method stops working after I invoke realm.close()
Can you please suggest me what might be the issue.
export const getStorageProtags = () => {
return Realm.open({
schema: [ProtagsSchema]
}).then(realm => {
const protags = realm.objects('Protags');
realm.close();
return protags[0];
});
}
解决方案
推荐阅读
- c# - 防止在 StateHasChanged 之后重新加载 ChildComponent?
- arrays - 如何编辑 NSObject 数据
- django - Django 管理员 - 创建自定义列表
- python - 如何按日期对列进行分组并从 python 中的另一列获取平均值?
- java - Retrofit2 response.body() 返回 cfar0@13b62af9
- python - python中的操作数无法一起广播错误
- python - Matplotlib 3.3.3:更改单个刻度的颜色不再起作用
- python - Python中的'FT'[boolean]之类的语法是什么?
- reactjs - ReactJS + Material UI:如何将 Material-UI/Pickers 的默认值设置为 null/no date selection
独立组件? - git - Git为其他分支中未推送的更改创建补丁,无需签出/切换