I have a lightning component which needs to be refreshed when a record is changed in the database. Can I use lightning Data Services or must I use the Streaming API?


A Lightning Data Service record will only update on-screen if the record is edited/updated in another Lightning Data Service context.

So, assuming that the database change is not done by the same user, I would suggest using Streaming API, or an on-screen polling mechanism that does calls to APEX.

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.