Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix[gen1][core] ENG-7515 add query.id when hitting content API for symbols #3752

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

clyde-builderio
Copy link
Contributor

Description

In Gen1 SDK, when content API is hit for Symbols, it does not render symbols properly

Jira ticket
https://builder-io.atlassian.net/browse/ENG-7515

Loom
https://www.loom.com/share/90d3b6e317bb493e98ad418ac2f0b7a0

@clyde-builderio clyde-builderio requested a review from a team as a code owner November 20, 2024 06:04
@clyde-builderio clyde-builderio requested review from mrkoreye and removed request for a team November 20, 2024 06:04
Copy link

changeset-bot bot commented Nov 20, 2024

🦋 Changeset detected

Latest commit: 0616543

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@builder.io/react Patch
@builder.io/sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines 2636 to 2639
if (apiEndpoint === 'content' && queue[0].model === 'symbol') {
queryParams['query.id'] = queue[0].entry;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should set this in Symbol.tsx instead. I think it can go in here:

options={{
...(!this.isEditingThisSymbol && {
key: builderComponentKey,
noEditorUpdates: true,
}),
}}
codegen={!!content?.data?.blocksJs}

The reason for that is because the model name might be something other than symbol

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is working as expected. Here is a loom with a demo of the changes https://www.loom.com/share/083d6711f94048ce8b88c514c71012e4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants