Realm local db data getting deleted on mobile state rebuilt

We are facing the issue of Realm local db data getting deleted once the state of the entire app is rebuilt in flutter sdk 0.4.0+beta. We have to add new subscriptions every time and get local data whenever app state rebuilds. Can you suggest any way so that subscriptions are not deleted?