Coalesce find requests
This commit is contained in:
parent
dda62c5394
commit
bf80fec82f
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
Adapter = DS.ActiveModelAdapter.extend
|
Adapter = DS.ActiveModelAdapter.extend
|
||||||
host: config.apiEndpoint
|
host: config.apiEndpoint
|
||||||
|
coalesceFindRequests: true
|
||||||
|
|
||||||
ajaxOptions: (url, type, options) ->
|
ajaxOptions: (url, type, options) ->
|
||||||
hash = @_super(url, type, options)
|
hash = @_super(url, type, options)
|
||||||
|
@ -16,4 +17,7 @@ Adapter = DS.ActiveModelAdapter.extend
|
||||||
|
|
||||||
hash
|
hash
|
||||||
|
|
||||||
|
findMany: (store, type, ids) ->
|
||||||
|
@ajax(@buildURL(type.typeKey), 'GET', data: { ids: ids })
|
||||||
|
|
||||||
`export default Adapter`
|
`export default Adapter`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user