Child pages (Children Display) | ||||||
---|---|---|---|---|---|---|
|
BIC: persistent storage
What's out?
Our collections avoid using any of the following mechanisms by default:
...
check to see if the BIC has loaded
check to see whether the collections exist
check to see whether we have detected reliable persistent storage (per-above)
Code Block | ||
---|---|---|
|
...
| ||||
require(['bic'], function (bic) { // 1.
bic.collections().then(function () { // 2.
if (bic.hasStorage()) { // 3.
// TODO: do something with a persistent collection
// e.g. `bic.interactions`, `bic.pending`, etc
}
});
}); |
We list our persistent collections with our other publicly accessible values.
...