You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Syncs your Contentstack data with your app and ensures that the data is always up-to-date by providing delta updates
61
-
#
61
+
#
62
62
# Stack.sync({'init': true}) // For initializing sync
63
-
#
63
+
#
64
64
# Stack.sync({'init': true, 'locale': 'en-us'}) //For initializing sync with entries of a specific locale
65
-
#
65
+
#
66
66
# Stack.sync({'init': true, 'start_date': '2018-10-22'}) //For initializing sync with entries published after a specific date
67
-
#
67
+
#
68
68
# Stack.sync({'init': true, 'content_type_uid': 'session'}) //For initializing sync with entries of a specific content type
69
-
#
69
+
#
70
70
# Stack.sync({'init': true, 'type': 'entry_published'}) // Use the type parameter to get a specific type of content.Supports 'asset_published', 'entry_published', 'asset_unpublished', 'entry_unpublished', 'asset_deleted', 'entry_deleted', 'content_type_deleted'.
71
-
#
71
+
#
72
72
# Stack.sync({'pagination_token': '<pagination>'}) // For fetching the next batch of entries using pagination token
73
-
#
73
+
#
74
74
# Stack.sync({'sync_token': '<sync>'}) // For performing subsequent sync after initial sync
75
75
#
76
76
# @param params [Hash] params is an object that supports ‘locale’, ‘start_date’, ‘content_type_uid’, and ‘type’ queries.
0 commit comments