-
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
Not able to identify RESQ nodes for non-root element #60
Comments
Hey @abhinaba-ghosh thanks for reporting this. Do you know if this happened in 1.7.1 as well? Also, could you provide a repo that I can clone and try this out. |
hi @baruchvlz , yes, it is happening with |
I'll take a look at this. Again, thanks for reporting. |
Hi @baruchvlz , sorry for pushing this in your busy schedule, but having an update about this issue would be pretty helpful. |
Hi @abhinaba-ghosh, I was trying to create a reproducible example for this, but was not able to. I used this example: import React from 'react';
import { resq$, resq$$ } from 'resq';
const Product = ({ text }) => (
<div className="product">{text}</div>
);
const Container = () => (
<div className="container">
{
['Foo', 'Bar'].map((text, index) => <Product key={`${index}_${text}`} text={`${index}_${text}`} />)
}
</div>
)
function App() {
React.useEffect(() => {
window.$ = resq$;
window.$$ = resq$$
}, []);
return (
<>
<Container />
</>
);
}
export default App; As you can see in the image, i am able to retrieve both |
Hi Thanks for re-confirming. I will try with the v1.9.0. If still exists, I will share the codebase. |
Hi @baruchvlz , some wired behavior after migrating to |
@abhinaba-ghosh Thanks for taking a look at v1.9.0. I'm not entirely sure why this is happening, but I tried out your last reported error with both sync and async approaches and could not reproduce. If you want to have a chat about this, feel free to reach out on Gitter. |
working well in the latest version. |
RESQ version: 1.8.0
If root is used while fetching the resq nodes, it is able to identify the child elements. But, if non-root element is used, it is failing to identify the same. The attached screenshots will be more descriptive:
DOM:
![Screenshot 2020-09-21 at 6 24 17 PM](https://user-images.githubusercontent.com/23141842/93768867-adf2e900-fc37-11ea-9c30-c4a14c891647.png)
Fetch Commands:
![Screenshot 2020-09-21 at 6 19 23 PM](https://user-images.githubusercontent.com/23141842/93768804-8d2a9380-fc37-11ea-9d55-9572b97f08cd.png)
So, in first command it is not able to identify the child elements. Once the root is used, both the child products got identified.
The text was updated successfully, but these errors were encountered: