A presentation at DrupalCon Prague 2022 in in Prague, Czechia by Brian Perry
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. This session will examine the concepts behind Drupal State, along with the role a library like Drupal State could play within the wider Decoupled Drupal ecosystem, including:
Last but not least, we’ll wrap up with the ways in which Drupal State needs community support, including how you can contribute
The following resources were mentioned during the presentation or are useful additional information.
Some thoughts from Rob Edwards @ CTI Digital about the talk.
Some live examples won’t render in PDF form, so this is only in case of presentation emergency.
The following code examples from the presentation can be tried out live.