🐛 [cloud_firestore] Add source option for realtime snapshots() listener #10047
              
                Unanswered
              
          
                  
                    
                      michalkubizna
                    
                  
                
                  asked this question in
                Feature request
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
The one-time get call has a GetOptions(source: Source. cache) option. Add the same option to the snapshots() listener. Use case: A real-time listener is not possible to implement with pagination. Without a real-time listener, the current user's updates are not reflected in the UI. Setting up a listener that would only listen to updates from the cache would allow for pagination while still including updates that come from the local device.
Beta Was this translation helpful? Give feedback.
All reactions