Skip to content

Data Store

Junaid Bhura edited this page Feb 2, 2019 · 1 revision

Gumponents make use of Gutenberg's Redux data store. The following data stores are available:

gumponents/media

This is used to store media details. Why not just use the original getMedia from the core data store? This is because the values from that are different from what is generated by the <MediaUpload /> component.

This data stores allows the block to access the original object generated by <MediaUpload />.

gumponents/relationship

This is used by relationship fields to store and access data. The following data queried by these fields are currently stored:

  • posts
  • taxonomies