shabados / presenter

Desktop app for presenting the Shabad OS Database on projectors, TVs, and live streams
https://shabados.com
MIT License
19 stars 15 forks source link

Get line data given line ID #596

Open saihaj opened 4 years ago

saihaj commented 4 years ago

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. image