Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- flutter
- 롤토체스 api dart
- keychain error
- flutter widget
- leetcode dart
- 파이썬
- dart
- valorant api dart
- widget
- flutter android 폴더
- flutter ios 폴더
- flutter statefulwidget
- lol api dart
- PlatformException(sign_in_failed
- 롤 api dart
- flutter bloc
- com.google.GIDSignIn
- riot api dart
- dart new
- Architectural overview
- dart.dev
- AnimationController
- swift 동시성
- swift concurrency
- 발로란트 api dart
- dart new 키워드
- generate parentheses dart
- tft api dart
- docker overview
- 파이썬 부동소수점
Archives
- Today
- Total
aspe
Sub You 개발기 2 본문
1. Firebase Realtime Database
firebase.database.Query.on("child_changed") vs firebase.database.Query.on("child_add")
child_add는 초기 값을 다 받아오고 listen하지만 child_changed는 초기 값을 받지 않고 listen한다.
firebase.database.Query.on("value") vs firebase.database.Query.on("child_add")
value와 child_add는 초기 값을 다 받아오고 listen한다는 점에서 동일하지만 child_add는 초기 값을 하나씩 받아오고, value는 초기 값을 한 번에 가져온다.
그러므로 초기값을 불러오는 것과 listen을 분리하고 싶다면, once나 get으로 한 번에 받아오고 child_changed로 listen하면 원하는 대로 만들 수 있다.
'Web > Project - Sub you' 카테고리의 다른 글
Sub you 개발기 5 (0) | 2022.02.03 |
---|---|
Sub you 개발기 4 (0) | 2022.01.26 |
Sub you 개발기 3 (0) | 2022.01.23 |
Sub you 개발기 - 1 (0) | 2022.01.11 |
Sub You 개발기 (0) | 2022.01.11 |
Comments