This can be done by using a helper function that will render the detail component and pass it an additional props.
This is an example of how it can be done:
The same approach can be used to pass any props, like functions, data, etc.
Also, the example in the previous link is working as expected on my end, could be please share where it is showing the undefined error.
I hope this is helpful.
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).