You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ServerSideRender generally refreshes the content on changing attributes.
It gives three optionsLoadingResponsePlaceholder ,EmptyResponsePlaceholder and ErrorResponsePlaceholder , that developers can render custom element for them.
But they make too many requests to refresh, on hover , on blur or on focus it will refresh the result without any reason I checked that happens when one or more of mentioned options are used.
Passing a function for those props doesn't work so well, as React treats that as a new component on every render. The ServerSideRender compares props to re-fetch data, and the component is refreshed more often.
Hi @Mamaduka, Thanks for the tip! That solved the problem I unfortunately did not pay much attention to default placeholders.
Does not it worth mention or add this in documentation?
ServerSideRender generally refreshes the content on changing attributes.
It gives three options
LoadingResponsePlaceholder
,EmptyResponsePlaceholder
andErrorResponsePlaceholder
, that developers can render custom element for them.But they make too many requests to refresh,
on hover
,on blur
oron focus
it will refresh the result without any reason I checked that happens when one or more of mentioned options are used.The comparison makes the problem clear:
This is the code I'm using here:
In this video does not have any of them.
before.mp4
It happen when any of them has custom HTML:
after.any.of.them.mp4
The text was updated successfully, but these errors were encountered: