SharePoint webpart seemingly losing context after a certain amount of time #2651
Unanswered
cardinalpipkin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, love what the sp/pnp team are doing and you have my full support :)
Situation/Environment - I have an SPFX built webpart that uses:
Problem: The webpart loads fine. After about 5 minutes of inactivity on the form when a user tries to update their form (Save and Close button) it shows:
We believe it might be the webpart losing context after a certain period of time and a token is not being renewed. This is a theory.
Point to note:
We are establishing context like this:
We have a helper/utils file which provides this:
In the parent component we use:
Previously we didn't use 2 useEffects, this is a failed attempt to make the context update more than once.
I hope that this is posted in the correct forum? And I don't believe it's a bug, but possibly the way we are establishing context with the new sp/pnp v3?
Beta Was this translation helpful? Give feedback.
All reactions