How to do cleanup in a workload React component #23
-
Beta Was this translation helpful? Give feedback.
Answered by
anitamayorov
Jul 3, 2024
Replies: 2 comments
-
Hi @box-turtle, You need to register to OnAfterNavigateAway event - you can take a look at the following sample code: When catching that event, you can do all the desired cleanup. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
anitamayorov
-
Thanks Anita - that works perfectly.
…On Wed, Jul 3, 2024 at 4:33 AM anitamayorov ***@***.***> wrote:
Hi @box-turtle <https://github.com/box-turtle>,
You need to register to OnAfterNavigateAway event - you can take a look at
the following sample code:
https://github.com/microsoft/Microsoft-Fabric-workload-development-sample/blob/b64b0bac0b0f0f1433df9e26bde0839174cc796b/Frontend/src/controller/SampleWorkloadController.ts#L195
When catching that event, you can do all the desired cleanup.
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6QP75LIQYYWHLSST7Z5JLZKOZMNAVCNFSM6AAAAABKH4VWGSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TSNBVGM4DO>
.
You are receiving this because you were mentioned.Message ID:
<microsoft/Microsoft-Fabric-workload-development-sample/repo-discussions/23/comments/9945387
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @box-turtle,
You need to register to OnAfterNavigateAway event - you can take a look at the following sample code:
Microsoft-Fabric-workload-development-sample/Frontend/src/controller/SampleWorkloadController.ts
Line 195 in b64b0ba
When catching that event, you can do all the desired cleanup.