Canvas Data Fetching

Fetch and render Drupal content in Canvas components with JSON:API and SWR patterns. Use when building content lists, integrating with SWR, querying related entities, or constructing/changing any JSON:API request — every generated request must be executed and verified to return the expected results before rendering logic is written against it. Covers JsonApiClient, DrupalJsonApiParams, relationship handling, filter patterns, and request verification.

drupal-canvas e99b125 15.5 KB Updated

File contents

drupal-canvas/skills/tree/main/skills/canvas-data-fetching commit e99b125dfe

Frequently asked questions

npx skillmds@latest add drupal-canvas/canvas-data-fetching