Is enriching the query-return props a good practice?
Hey 👋🏽 ,
I'm interested in your opinion. Please check out following code:
Here the return properties are enriched by 2 further properties (hasRightFn and currentUser). Are there any disadvantages here? I think no.
thanks
2 Replies
unwilling-turquoise•3y ago
...query spreading is a bit troublesome with tracked queries. we have a lint rule that warns you about this. if possible, do:
genetic-orangeOP•3y ago
Thanks for the tip! That is of course not a problem.