pnp/sp-dev-fx-extensions

react-my-lists-notifications Why not using "sp-list-subscription"

tleclaire opened this issue · 2 comments

Sample

react-application-my-lists-notifications

Author(s)

@hugubarnier

Question

Looking at the code, you are handling the notifications by using the graph api and Socket.io directly allthough there is a SPFx standard package "sp-list-subscription" available, which would at least eliminate the need for graph permissions.
So the question is:
Why aren't you using sp-list-subscription for this sample and would that work as well?

Thanks
Thomas

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Hi @tleclaire

Regarding your question about Why not "sp-list-subscription", I believe that sp-list-subscription will work as well but, in this case, you would need to renew SP-list subscription every 180 days.

I'm using SharePoint Webhook "sp-list-subscription" approach to receive notifications about changes that are happening in Site Pages library, and it works fine.