I have an existing slice within a custom type with a handful of various field types in the repeatable section of the slice. When I added a key text field to this existing slice, one of the Rich Text Fields, which was null by default before, becomes populated with an empty string. However, when I delete the repeatable section and recreate it as it was before, the Rich Text Field remains null.
Why does this happen? This is very frustrating because it messes with frontend validation logic and it makes me nervous about editing custom types, which is the whole point of Prismic!
We are currently moving away from the gatsby-source-prismic-graphql plugin and starting to use gatsby-source-prismic more now. You can read all about it here: Gatsby-Prismic plugins: what’s going on?
For the time being, we are still giving some support to the one you're using in a fork made to the plugin, so we are encouraging every Prismic + Gatsby user to replace the gatsby-source-prismic-graphql npm package to be @prismicio/gatsby-source-prismic-graphql
But, going back to your case, this is very strange behaviour. Can you show me an example o what the API is retrieving, you can use screenshots.
Hi, Paulina. I am aware of the issues with the gatsby-source-prismic-graphql plugin, but I did not know about the fork. Thank you for letting me know, I will look into that.
This project has two Prismic repos, one staging and one prod. I added the the key text field ipf_field_name to the staging repo, along with populating the label field, and the API call result is below.
Ok I see, you were right, this is related to the thread you linked at the beginning. It's something we are aware of and still have no ETA or clear plans on modifying this. I totally understand that this can become a problem if it makes the front end break.
What you can do is add extra validation to your Rich text fields so that they don't trigger an error, e.g.: