Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export default class CartoDataProvider extends Component {
@service
router;
@service
store;
modelName = 'carto-geojson-feature';
modelId = null;
@keepLatestTask({ retryable: delayRetryPolicy, maxConcurrency: 1 })
findRecordTask = function* () {
return yield this.store.findRecord(this.modelName, this.modelId);
};
@computed('modelName', 'modelId')
get taskInstance() {
return this.findRecordTask.perform();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.