discourse/app/assets/javascripts/discourse/adapters
Robin Ward ddf0db0338 Refactor notifications localStorage cache into adapter pattern.
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`.
2015-08-31 14:12:27 -04:00
..
notification.js.es6 Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
post.js.es6 Support saving posts via Store 2015-04-15 14:54:36 -04:00
rest.js.es6 Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
topic-list.js.es6 FIX: Encode percent character in search terms. 2015-07-21 10:54:39 +08:00
topic.js.es6 UX: Update suggested topics to include topic status + category 2015-06-18 15:53:10 -04:00