question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getReact function doesn't return latest props

See original GitHub issue

Hello,

we’re facing a similar issue to the one fixed last week: https://github.com/DevExpress/testcafe-react-selectors/issues/71 so now we don’t get latest props by getReact function after executing some code within ClientFunction which in turn triggers some props to change in application. And everything gets updated in the UI, but getReact returns incorrect values. And this is very consistent, no amount of waiting helps. Have any suggestions regarding this? if you need some POC to investigate it, let me know.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
kirovboriscommented, Jan 23, 2018

Yes, this is a bug. Thank you for reporting it. I’ll fix it soon.

0reactions
kirovboriscommented, Jan 24, 2018

You’re always welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using a function to return a prop is not returning the prop
The method is working fine and I can return a correct result to the console. However when I inspect my component with react...
Read more >
Dealing With Stale Props and States in React's Functional ...
React's useState docs tell us that React will bail out of a re-render if the new state is identical to the previous one....
Read more >
Render Props - React
A component with a render prop takes a function that returns a React element and calls it instead of implementing its own render...
Read more >
Components and Props - React
Props are Read-Only​​ Such functions are called “pure” because they do not attempt to change their inputs, and always return the same result...
Read more >
React.Component
shouldComponentUpdate() is invoked before rendering when new props or state are being received. Defaults to true . This method is not called for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found