-
Notifications
You must be signed in to change notification settings - Fork 28
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
node incorrectly being returned as an empty array #84
Comments
Hey @asnaseer-resilient, thanks for using the library. I would like to apologize for the tardiness of the response. Your |
@baruchvlz I thought the library would realise that this is a fragment and, as you said, would therefore not have a HTML representation and therefore just return the children directly. We are using this library indirectly as we use CodeceptJs for our end-to-end testing and the current behaviour breaks some of our tests. Would it possible to change the behaviour of how this library treats fragments? |
@asnaseer-resilient It does, on the The reason the |
Ok - I will get in touch with the authors of CodeceptJs to see if they can amend their use of your library to fix the issues we are seeing. |
We have a React component named EditableCallRoutingTableDialog that contains within it another of our React components named EditableCallRoutingTable. The relevant snippets showing the code for these components is shown below. We added a call to
React.useEffect
in the EditableCallRoutingTable component as follows:in order to see what
resq$$
returns for our components and got this output:From the output above for EditableCallRoutingTableDialog we see that the
node
field is returned asdiv.MuiDialog-root
which matches what we expected.However, the
node
field for the EditableCallRoutingTable seems to be an empty array when we expected it to be adiv
.If we remove the Snackbar component from the end of the EditableCallRoutingTable code then the
node
is returned as:which looks correct.
Are we using your library incorrectly or is this a bug?
We are using:
Code Snippet for EditableCallRoutingTableDialog
Code Snippet for EditableCallRoutingTable
The text was updated successfully, but these errors were encountered: