mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 04:42:02 -05:00
ddf0db0338
Sometimes you want stale data right away, then refresh it async. This adds `findStale` to the store for that case. If it returns an object with `hasResults` you can get the `results` and display them. It also returns a `refresh()` method to freshen up the stale data. To enable `localStorage` support for stale data, just include the mixin `StaleLocalStorage` into an adapter for that model. This commit includes a sample of doing that for `Notifications`. |
||
---|---|---|
.. | ||
badge-test.js.es6 | ||
category-test.js.es6 | ||
composer-test.js.es6 | ||
email-log-test.js.es6 | ||
invite-test.js.es6 | ||
model-test.js.es6 | ||
nav-item-test.js.es6 | ||
post-stream-test.js.es6 | ||
post-test.js.es6 | ||
report-test.js.es6 | ||
rest-model-test.js.es6 | ||
result-set-test.js.es6 | ||
session-test.js.es6 | ||
site-test.js.es6 | ||
staff-action-log-test.js.es6 | ||
store-test.js.es6 | ||
topic-details-test.js.es6 | ||
topic-test.js.es6 | ||
topic-tracking-state-test.js.es6 | ||
user-action-test.js.es6 | ||
user-badge-test.js.es6 | ||
user-stream-test.js.es6 | ||
user-test.js.es6 | ||
version-check-test.js.es6 |