|
shouldComponentUpdate() {
return false; // Will cause component to never re-render.
} |
Hi, had you resolved the issue? I am using react hooks and instead of declaring the function shouldComponentUpdate() wrap the scheduler component into memo(). But the question is how to wrap custom Event template into memo() to prevent redundant re-rendering? The trouble is template param in eventSettings accepts string or undefined. So attempts to convert memoized component into string are being failed. I will be grateful to you