Skip to content

Calling methods on the component instance #1299

Answered by boardfish
aa365 asked this question in General
Discussion options

You must be logged in to vote

Hi @aa365, thanks for opening this discussion! I feel like this is acceptable, personally, and at least at this stage in your component's life, it may even be preferable to using slots. I haven't really used this pattern myself, but I feel like it's a good stand-in until you come to need a renders_many slot. That day may come when tabs become their own components and/or take content of their own, and this pattern will be compatible with that change when it comes to be made.

I wonder what folks think about officially documenting this pattern alongside slots?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@aa365
Comment options

@boardfish
Comment options

@Spone
Comment options

@RolandStuder
Comment options

Answer selected by aa365
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants