SwoffSwoff

Dependencies

Feature dependencies and boolean sub-features in swoff.config.json.

Boolean sub-features

These boolean flags nest under their parent object feature:

FeatureConfig pathDefault
Background Syncfeatures.mutationQueue.backgroundSyncfalse
Push Notificationsfeatures.pushNotificationsfalse

Feature dependencies

Some features work best together:

FeatureRecommended comboWhy
mutationQueue.backgroundSync+ mutationQueueBackground Sync processes mutations even after tab close
serverPush+ tagInvalidationServer push triggers invalidateByTag() — requires tag invalidation to function
auth + mutationQueueclearAuth() also clears the mutation queue — no manual clearQueue() needed on logout
graphql+ mutationQueue + tagInvalidationOffline GQL mutations queue in IndexedDB; mutations auto-invalidate operation-name tags

On this page