Library refresh no longer works after upgrade

Hi, I was previously using

fd.control(dataTable)._dataProvider.refresh();

To refresh a Library control following upload, however the dataProvider.refresh() is returning ‘Cannot read property ‘refresh’ of undefined’ - I will check and make sure nothing else has changed in my code to trigger this, but could you advise if switching over to PnP would have caused this?

EDIT: I solved the issue. The function refresh is now public - therefore:

fd.control(dataTable).refresh();

works instead. Thought I’d leave this post in case any others have also seen this behaviour following update.

Kind regards
Andy

Dear Andy,

Glad you’ve solved this! You are right, the public method “refresh()” for List/Library control is now available.