Forum Discussion
SPFx + PnP: how do I get web part property values inside the .then() ?
*Bump*
Out sick for a week and not a single response? I'm honestly a bit surprised. I know that "globals" are much unloved (and with good reason), but if I'm building a web part, it's properties should be available to me everywhere in my project. They don't do me any good if I can't access them. The fact that the properties we define and populate are not available to the rest of the code in the project (i.e. like a public global object) feels like an oversight in the design of the SharePoint Framework.
Perfectly willing to eat crow due to my ignorance, but I really need some guidance here.
As described above, once the data has been retrieved using PnP, I need format it for display based on properties values set in the property pane by the end user. I cannot do that if the values contained in those properties cannot be accessed. Someone please tell me what I am missing here.
Thanks.