Build a memoized Dataset bound to the provider's client. The dataset identity is stable until its id, source descriptors, or policy change, so it is safe to pass its sources into useQuery across re-renders.
id
const dataset = useDataset({ id: "incidents", sources: [{ id: "incidents", protocol: "geoservices-feature-service", locator: { url, serviceId: "incidents", layerId: 0 }, capabilities: PROTOCOL_DEFAULT_CAPABILITIES["geoservices-feature-service"] }],}); Copy
const dataset = useDataset({ id: "incidents", sources: [{ id: "incidents", protocol: "geoservices-feature-service", locator: { url, serviceId: "incidents", layerId: 0 }, capabilities: PROTOCOL_DEFAULT_CAPABILITIES["geoservices-feature-service"] }],});
Build a memoized Dataset bound to the provider's client. The dataset identity is stable until its
id, source descriptors, or policy change, so it is safe to pass its sources into useQuery across re-renders.