Skip to content

Commit

Permalink
RC doc update to provide default prod value for minimumFetchIntervalM…
Browse files Browse the repository at this point in the history
…illis (#389)

* Add comment to highlight the default prod value for minimumFetchIntervalMillis.

Issue addressed: firebase/firebase-js-sdk#2841

* Update code snipped with default prod value for minimumFetchIntervalMillis.

* Update code snipped with default prod value for minimumFetchIntervalMillis.

* Update code snipped with default prod value for minimumFetchIntervalMillis.

---------

Co-authored-by: Athira M <[email protected]>
  • Loading branch information
athiramanu and Athira M authored Jan 24, 2025
1 parent 56d7062 commit 3d04522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions remoteconfig-next/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function getInstance() {
function setMinimumFetchTime() {
const remoteConfig = getInstance();
// [START rc_set_minimum_fetch_time]
// The default and recommended production fetch interval for Remote Config is 12 hours
remoteConfig.settings.minimumFetchIntervalMillis = 3600000;
// [END rc_set_minimum_fetch_time]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
// 'npm run snippets'.

// [START rc_set_minimum_fetch_time_modular]
// The default and recommended production fetch interval for Remote Config is 12 hours
remoteConfig.settings.minimumFetchIntervalMillis = 3600000;
// [END rc_set_minimum_fetch_time_modular]

0 comments on commit 3d04522

Please sign in to comment.