- Necesito actualizar un comoponente Aura cada 20 segundos.
I have this code in JavaScript for HTML but i don't know to apply in Aura Component.
function actualizar() {
location.reload(true);
}
setInterval("actualizar()",20000);
the sencence refresh view native of salsforce, i don't know to use correctly way.
$A.get('e.force:refreshView').fire();
답변 1개
Hi,
https://developer.salesforce.com/docs/component-library/bundle/force:refreshView/documentation
I think it is possible if you make a helper like the one below and call it.
helper.js
refreshView : function(component, event){
$A.get('e.force:refreshView').fire();
}