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: avoid error to get exist sibling. #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wssgcg1213
Copy link
Member

Error case:

function Foo(props) {
  return (
    <View className="container">
      <div x-slot:content>
        <Inviter foo="bar">
          <div x-slot:extra>{props.foo}</div>
        </Inviter>

        <View>1</View>
        <View x-if={props.condition}>2</View>
        <View>3</View>
      </div>
    </View>
  )
}

@wssgcg1213 wssgcg1213 changed the title Fix/to get exist Fix: avoid error to get exist sibling. Oct 9, 2021
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.

1 participant