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
sensitive-blue•2y ago
...query
spreading is a bit troublesome with tracked queries. we have a lint rule that warns you about this. if possible, do:
rival-blackOP•2y ago
Thanks for the tip! That is of course not a problem.