Drupal State and the Need for a JavaScript SDK at DrupalCon Portland 2022

Drupal State and the need for a JavaScript SDK
Drupal Association YouTube

Brian Perry, Senior Software Engineer Pantheon, gave a session on ‘Drupal State and the Need for a JavaScript SDK’ at DrupalCon Portland. This session examines the concepts behind Drupal State, along with the role a library like Drupal State could play within the wider Decoupled Drupal ecosystem.

With JSON:API, Drupal offers an extremely low friction approach to make content from Drupal available to any consuming application. However, Drupal doesn't currently offer any tools to make consuming this data in a JavaScript front end just as frictionless. This leads to developers repeatedly solving the same problems in decoupled builds, and may also contribute to the perception that Drupal isn't JavaScript friendly.

Drupal State aims to bridge this gap by offering a common set of framework agnostic utilities that allow JavaScript developers with limited knowledge of Drupal or the JSON:API spec to take advantage of the best features of Drupal’s APIs.

The flow of the session included:

  • Fetching data
  • My component library needs
  • How do other projects handle this?
  • What would we need to stop solving this problem repeatedly?
  • While we’re dreaming about solving the World’s problem
  • Avoiding over fetching
  • The graphQL of it All
  • Remember Generic Drupal Web Components?
  • How could we improve this?
  • Possible next steps.

Watch the session at Drupal Association's YouTube page:

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please let us know in the comments below and we will try to address the issue as best we can.

Related Organizations

Advertisement Here

Upcoming Events

Latest Opportunities

Advertisement Here