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

refactor(no-element): towards getting rid of no-element component #1564

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

joseacabaneros
Copy link
Member

@joseacabaneros joseacabaneros commented Jul 11, 2024

NoElement component is gonna be an issue in terms of attribute inheritance on Vue3 because Fragment creation to support multiple root nodes. To solve it, there is a workaround we can achieve. This is to manage the vNodes creation in the render function in the components themselves (moreover, without generating breaking changes).
To do it, we must refactor them in two steps:

  • Components which will work in both Vue version because they don't have fallback content in the slots (this PR)
  • Components which won't work in both Vue versions because they require additional props in the h function, and they are breaking-change in the Vue migration (future PR once we have Vue3 officially)

Components refactored in this PR to get rid of using NoElement component:

  • DisplayResultProvider
  • RenderlessExtraParam
  • SelectedFilters

Extra: ResultVariantsProvider component was also refactored to avoid $scopedSlots which is breaking-change in Vue3.

@joseacabaneros joseacabaneros requested a review from a team as a code owner July 11, 2024 17:08
@joseacabaneros joseacabaneros marked this pull request as draft July 11, 2024 17:08
@joseacabaneros joseacabaneros marked this pull request as ready for review July 12, 2024 10:57
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove the NoElement usage from the components and the import, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes! I forgot it. Removed

@joseacabaneros joseacabaneros force-pushed the towards-gettting-rid-of-no-element branch from fe4f765 to 65baa0a Compare July 23, 2024 13:10
@diegopf diegopf merged commit 12bb73d into main Jul 23, 2024
4 checks passed
@diegopf diegopf deleted the towards-gettting-rid-of-no-element branch July 23, 2024 13:49
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