javascript - Firebase startat timestamp issue?
问题描述
I have an issue with firebase. I'm trying to start at specific timestamp, but it seems like it's not starting at the specified timestamp. In the log you can see the variable this.state.timeAtMount
is greater than the date_add
child.
ref
.orderByChild('date_add')
.startAt(this.state.timeAtMount)
.on('child_added', snapshot => {
console.log('TIME MOUNT', this.state.timeAtMount);
console.log('ANSWERS TO REPLY child_added', snapshot);
})
THE LOG :
TIME MOUNT 1574536646740
ANSWERS TO REPLY child_added Object {
"author": "MJE3PrCYJXT4yv2LHF9S229CLRA2",
"date_add": 1574535388800,
"question": "S",
}
TIME MOUNT 1574536646740
ANSWERS TO REPLY child_added Object {
"author": "MJE3PrCYJXT4yv2LHF9S229CLRA2",
"date_add": 1574535448836,
"question": "Sss",
}
TIME MOUNT 1574536646740
ANSWERS TO REPLY child_added Object {
"author": "MJE3PrCYJXT4yv2LHF9S229CLRA2",
"date_add": 1574536634684,
"question": "S",
}
解决方案
推荐阅读
- ruby - 有没有办法在不改变 Ruby 中单词顺序的情况下反转字符串中的单个加扰单词?
- angular - 在 Angular 9 中动态加载 *ngFor 内的组件
- hadoop - Hive 安装错误:com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
- c# - EF Core 未从 Web.Config 读取连接字符串
- sql - 如何在 SAS 中合并具有不同数据类型的 2 列?
- javascript - 检查特定的 URL 正则表达式
- linux - Git:尽管安装在 OpenWRT 的 USB 中,但找不到?
- c - 试图从分配的内存中用 fwrite() 填充文件
- prestashop-1.7 - 在管理产品页面(Prestashop)中添加一个复选框
- laravel - Laravel 中不同宽度和高度的图像布局问题与 fancybox