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(ui): generate only one thread composer in PublishWidgetList and provide it to each widget #2953

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

userquin
Copy link
Member

@userquin userquin commented Sep 11, 2024

This PR builds the composer in the list sfc and pass it to each widget: the widget will use the provided or build a new one composer depending on the new optional thread-composer prop.

(fixes the vue setup warning from this #2946 (review))

@patak-dev @danielroe @shuuji3 I didn't did anything about the composer logic, maybe you can help me to test this PR properly

imagen

@userquin userquin requested a review from danielroe September 11, 2024 17:47
Copy link

netlify bot commented Sep 11, 2024

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 8d93699
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/66e1d7b0c374c800081af0bb

Copy link

netlify bot commented Sep 11, 2024

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 8d93699
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/66e1d7b0f321bb0008f35156
😎 Deploy Preview https://deploy-preview-2953--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

useThreadComposer(draftKey, initial).threadItems.value,
)
const threadComposer = useThreadComposer(draftKey, initial)
const threadItems = computed(() => threadComposer.threadItems.value)
Copy link
Member Author

@userquin userquin Sep 11, 2024

Choose a reason for hiding this comment

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

I still don't understand why this should be a computed, I guess it can be used with threadComposer.threadItems.value in the template

@danielroe danielroe added this pull request to the merge queue Sep 11, 2024
Merged via the queue into main with commit 4061075 Sep 11, 2024
17 checks passed
@danielroe danielroe deleted the userquin/fix-widget-list-setup-warning branch September 11, 2024 20:39
shuuji3 pushed a commit that referenced this pull request Oct 21, 2024
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