Skip to content

DEV: Use transformedPost as args to the Post widget #202

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

Merged
merged 2 commits into from
Mar 18, 2025

Conversation

megothss
Copy link
Contributor

@megothss megothss commented Mar 18, 2025

This is necessary due to upcoming changes in the post model for the Glimmer post stream.

The post widgets expect to receive a transformed post as argument and use the spread operator to pass attributes to the inner widget, however the Docs plugin was providing a post model instance as argument instead.

This used to work fine, but as we introduce tracked properties in the post model, the spread operator doesn't copy their values, which causes issues.

This PR changes the DocsTopic Component to provide a transformedPost as argument to the post widget instead.

This is necessary due to upcoming changes in the post model for the Glimmer post stream.
@megothss megothss merged commit 9fcfac6 into main Mar 18, 2025
5 checks passed
@megothss megothss deleted the dev/transformed-post branch March 18, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants