You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now when testing Svelte components from what I've seen in the wild and in my own project, passing in props becomes repetitive and seems to be the main Component initialization option used.
One way to implement this is to contain a dictionary of the Client side component options, and (1) if any are present then pass in the options, (2) otherwise pass in the object directly as props.
The text was updated successfully, but these errors were encountered:
Problem
Right now when testing Svelte components from what I've seen in the wild and in my own project, passing in props becomes repetitive and seems to be the main Component initialization option used.
To be more precise this statement:
Examples in the wild:
Potential Solution
To avoid breaking changes, maybe the render function can accept both direct props AND Component options. So both the following would be valid:
One way to implement this is to contain a dictionary of the Client side component options, and (1) if any are present then pass in the options, (2) otherwise pass in the object directly as props.
The text was updated successfully, but these errors were encountered: