mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:18:24 +08: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`. |
||
---|---|---|
.. | ||
admin | ||
defer | ||
discourse | ||
docs | ||
ember-addons | ||
locales | ||
admin.js.erb | ||
application.js.erb | ||
discourse.js | ||
ember_include.js.erb | ||
env.js | ||
jquery_include.js.erb | ||
main_include_admin.js | ||
main_include.js | ||
pagedown_custom.js | ||
preload_store.js | ||
vendor.js |