option.formattingFn rerender
See original GitHub issuei hope to change option.formattingFn to rerender if i changed it’s inner params .
const countUpProps = {
start: start,
end: end,
duration: duration ,
separator: separator,
decimals: decimals,
delay: 0,
formattingFn: formatNumber // dynamic function
};
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:16
Top Results From Across the Web
option.formattingFn rerender - Bountysource
Coming soon: A brand new website interface for an even better experience!
Read more >glennreyes/react-countup - GitHub
formattingFn : (value: number) => string. Function to customize the formatting of the number. To prevent component from unnecessary updates this function should ......
Read more >Rerender select element with a default option from parent ...
I have a select component, which calls a callback given by a parent component to change a state maintained by the parent. This...
Read more >How to stop re-rendering lists in React? - Alex Sidorenko
Components always re-render. First, let's simplify our example by removing all props from the Item . We will still update the parent state...
Read more >React re-renders guide: everything, all at once - Developer way
Re-render happens when React needs to update the app with some new data. Usually, this happens as a result of a user interacting...
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
I’ll check it, not sure
Also will check it, but i suppose it’s just similar to
CountUp
behaviour.@Luc9802 just published 4.4.0 and it should work with redraw option:
And i’ll investigate the case with passing new
formattingFn
option.