letoast
Explore posts from serversAdding to composable using a Layer
What would be the best way to add to a composable using layers?
For example, I have my base layer with
/composables/useXY.ts
which has for example:
and I'd like to extend this composable's functionality with another method. I'd like to use layers to do this. If I define this same composable with just the added method in another layer, it just overrides the original one:
What would be the correct way to do this? The final composable should look like:
32 replies