I already mentioned that solution in the article. My solution will do an extra render, yes. But that's a good thing here, because the component won't be blocked from rendering while the value is being computed.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.