Q: How to render current point data correctly?
See original GitHub issueInitially, the UI on gestures works pretty well.
But if I try to render the current point price and timestamp I get a laggy thing. Here is an example of code with setState
:
const onPointSelected = useCallback(
(p) => {
console.log(p);
const selectedPrice = formatAmount(p.value, fiatCurrency.code as CurrencyName, "fiat");
const timestamp = DateTime.fromSeconds(p.date);
setAmountTitle(selectedPrice);
setTimestamp(timestamp);
},
[fiatCurrency.code],
);
As a result with setState
I get slow UI:
So the question is how to render it properly and smoothly?
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Basics of rendering and exporting in After Effects CC
Learn how to render and export in After Effects using the Render Queue panel and Media Encoder and what are the supported output...
Read more >Highcharts not rendering data points - Stack Overflow
It's pulling the correct data and echoing how I expect it to. <?php $expAddress = "URL"; $expUser = "USERNAME"; $expPwd = "PASSWORD"; $database...
Read more >How to save renders correctly in Blender? - Artisticrender.com
Start you render from the menu, Render -> Render image, or by pressing F12. Once the render has finnished, go to Image ->...
Read more >French point cloud data won't render properly in QGIS 3.22.3
It is possible that the problem is due to entwine utilities. Try to generate entwine data manually from your initial laz (the process...
Read more >Rasterization: a Practical Implementation (Perspective Correct ...
As you already know, we need to store the z-coordinates of the original vertices (camera space vertices) in the z-coordinate of our projected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, I installed
AnimateableText from "react-native-animateable-text"
, and here is the new codeUPD: works now
Yeah, that’s because of React Native. It isn’t really fast at state updates. Maybe this will improve with concurrent mode. The way to solve this is to use Reanimated Shared Values and update the Text using ReanimatedText.