Currently we have custom hooks that get us current line data from the context. But the problem is when we want a specific line from line ID which is required to resolve #235, #511 we can't really get it without hurting performance. Solution that I can think is:
Add an action in controller that does this but we will be querying so much and not good for performance.
In case of #511, if I fetch all the data to fulfill the shape I want so that I can run it through our in copy hotkeys we overfetch for the users who don't even use this at all or someone who just uses it once.
Solution: Some magical function that returns something like this (so it is consistent what we have rn) but also not affecting performance.
Currently we have custom hooks that get us current line data from the context. But the problem is when we want a specific line from line ID which is required to resolve #235, #511 we can't really get it without hurting performance. Solution that I can think is:
Solution: Some magical function that returns something like this (so it is consistent what we have rn) but also not affecting performance.