π Spookyberb π β 12-59 Nov 3
Having a function at the parent level, is it possible to pass from the child a value parameter to the function while also passing another parameter from the parent? I want to pass a
limit
param from the parent, and a value
param from the child
4 Replies
Yeah, you can change 
<ControlledInput validationFunction={isValid} />
to
Assuming limit is available in scope from the parent there 
damn how does that work?
oooo
okay
thank you!
Itβs just a callback function so you can receive the value from the child and call isValid with it and whatever is in scope in the parent
No worries 

This thread hasnβt had any activity in 12 hours, so itβs now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1037712604535210065