π 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 ![meowthumbsup](https://cdn.discordapp.com/emojis/723725919155650591.png)
<ControlledInput validationFunction={isValid} />
to
Assuming limit is available in scope from the parent there ![meowthumbsup](https://cdn.discordapp.com/emojis/723725919155650591.png)
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 ![meowthumbsup](https://cdn.discordapp.com/emojis/723725919155650591.png)
![meowthumbsup](https://cdn.discordapp.com/emojis/723725919155650591.png)
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