AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Importance of Hooks in Backwards Compatibility
One big use case I have for that currently and in an app that I'm building is backwards compatibility. So there I use those hooks to like detect, okay, the JSON that's just coming in that I plan to transform into my model, is it the legacy version? Then I pre-modify the payload while it's stillJSON so that it's then decodable by the package. And there are others like that. You could build something like that with hooks but yeah, that's then outside of the package because it's just a very specific maybe case you have.