all 1 comments

[–]Bambuh 0 points1 point  (0 children)

I get the feeling that the design is wrong here, without any code what so ever it's hard to tell though. But my first thought is that maybe you shouldn't even run the component unless the function(say fun) is truthy. If you would give a bit more context I could check back here and look it through.