Let's say I have a component c:Widget which is being displayed in some user's browser. c:Widget displays the contents a Widget__c record.

Let's say something causes the Widget__c record to update on the server.

Is it possible for the server to send a message to c:Widget, which I might be able to handle as an event?

In the less favourable alternative, is it possible to create a background process in c:Widget which will periodically poll the Widget__c record for updates?


You've to return the data or some kind of indicator from the server, which can be handled in lightning component controller and display message accordingly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.