I’ve run into an issue with the Builder.io SDK where custom components used by the page are omitted by default due to this default query in the SDK options:
omit: queue[0].omit || 'meta.componentsUsed',
Source:
This means that if you want to use meta.componentsUsed with fetchOneEntry, you need to explicitly set omit: ' ' (a space), or a field that doesn’t exists like omit: 'doNotOmitAnything' which seems to work as a workaround.
It seems like a bug, as the expected behavior would be for omit: undefined or an empty string to allow meta.componentsUsed to be included. Has anyone else run into this? Hoping the SDK gets a fix for this in the future!
Would love to hear thoughts from the community or if there’s a better way to handle this.
I’m sorry to hear that you are running into this issue, but thank you very much for reporting it to us! We’ll be sure to take this back to the team internally to review and provide updates here as further information becomes available.