feat: added bindable property to pass inputChanges into parent component#306
feat: added bindable property to pass inputChanges into parent component#306ZktSn0w wants to merge 2 commits intomskocik:masterfrom
Conversation
…e being changed in an effect of input_value change
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
I also want the option to bind to the input_value of the user. This would allow me to use a custom filtering based on the input value. I only want to show 10 entries and I need to collect options from two sources - one data map held in my frontend, and an optional API request returning more options in case I have less than 10 frontend options matching the search string. However, regarding the provided solution: maybe the update in the effect should only happen, if the new value in Moreover, I would love to have an adequate solution in v4 also, since the migration to v5 did not yet happen due to several other dependencies. |
|
What about this example? https://svelte.dev/playground/f39cc6569cc946d18799964f6a9e7f1e?version=latest Is it what you need or is it something completely different? |
|
@mskocik However, I need it for one case and could probably live with it. |
This feature is needed in my application and i think it might be a quite common approach that would give back more control to the Developer using this Library.
It might be that there are complex data-structures that have to be dealt with before sending an fetch request.
an beforeFetch Callback would make the DX worse in my opinion.
making the input_value an bindable prop would also be an valid solution, just tell me what you think would be better
You might want to squash this PR