title: How can I use local copy of MongoDB Synced Realm database while completely offline?
body: <p>I am using MongoDB Realm Sync on my React Native app. When I start my app online and later disconnect internet, my realm works fine. I can see my data and also I can write data which syncs with server when I go back online. But when I start my app completely offline, my app does not show any data. From what I understand, realm is suppose to read local database and return data even when the app starts from complete offline. Isn't it ? How can I access my data when I start my app offline ? Below is my code I've used to sync with server.</p>
  <pre><code>const config = {
        schema: [sessionSchema],
        sync: {
          user,
          partitionValue: 'Test',
        },
      };
  
  try {
        Realm.open(config)
          .then((openedRealm) =&gt; {
            if (canceled) {
              openedRealm.close();
              return;
            }
            realmRef.current = openedRealm;
            const syncSessions = openedRealm.objects('session');
  
           openedRealm.addListener('change', () =&gt; {
              setSessions([...syncSessions]);
           });
          setSessions([...syncSessions]);
       }
    } catch (e) {
        console.log('ERROR', e);
      }
  </code></pre>