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

bug: unable to find parent node after dual end comparison #21

Closed
hairyf opened this issue May 22, 2023 · 0 comments
Closed

bug: unable to find parent node after dual end comparison #21

hairyf opened this issue May 22, 2023 · 0 comments

Comments

@hairyf
Copy link
Owner

hairyf commented May 22, 2023

Performing a dual end comparison in Vue's renderer will result in the loss of parents and the inability to add new children

  <!-- scenario 1 -->
  <template v-if="bundle === 'load-screen'">
    <sprite v-bind="center" :texture="textures?.flowerTop" @click="bundle = 'game-screen'" />
  </template>
  <!-- scenario 2 -->
  <template v-if="bundle === 'game-screen'">
    <sprite v-bind="center" :texture="textures?.eggHead" @click="bundle = 'load-screen'" />
  </template>
hairyf pushed a commit that referenced this issue May 22, 2023
@hairyf hairyf closed this as completed May 22, 2023
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

No branches or pull requests

1 participant