
Announcements
Hi guys, I'm new to react in PCF.
I'm trying to update the value of the field where my PCF is bounded to using the PCF I am creating.
I tried this approach:
I am setting the "_notifyOutputChanged" witht the original notifyOutputChanged
Then calling it on my custom method, they are in a same class
But when I'm trying to call it on another tsx file, I getting an error
Error:
"this._notifyOutputChanged is not a function"
I'm stuck right now. can anyone tell me what's the correct approach here. Thank you!
Hi @MacThareLyn ,
You should pass the "updateProps" callback through the props of your other tsx file (component).
You don't instantiate your PCF from your other TSX, but render your other tsx (component) inside your productSubgrid class instead.