The grid (core) ยท console.warn
source.mode "remote" requires a fetch function; the grid will stay empty.
Printed by The grid (core), prefixed [lattice], since 1.0.1.
Warnings reference › source.remote.fetch
- Identifier
source.remote.fetch- Raised by
- The grid (core)
- Since
- 1.0.1
What happened
A remote source delegates sorting, filtering and grouping to the server, and it has no way to reach one. No request is ever made and the grid stays empty.
The fix
Supply source.fetch.
The smallest fix
source: { mode: 'remote', fetch: (request) => api.query(request) }
Reference
Covered in full at the API reference.