m-wrzr / streamlit-searchbox

Streamlit searchbox that dynamically updates and provides a list of suggestions based on a provided function
MIT License
240 stars 31 forks source link

_process_search function with incorrect parameter #40

Closed henriquesousa7 closed 4 months ago

henriquesousa7 commented 5 months ago

The kwargs parameter of the _process_search function seems incorrect to me, it is becoming mandatory in my application that uses this function.

wouldn't the correct one be **kwargs?

vide https://github.com/m-wrzr/streamlit-searchbox/blob/main/streamlit_searchbox/__init__.py#L76C5-L76C20

m-wrzr commented 5 months ago

Thanks for the input, I've updated the call to not pass kwargs explicitly. What is the usecase for calling _process_search directly?

henriquesousa7 commented 5 months ago

I'm using it to view all searchbox items in the first interaction or after some manipulation, removing the need to type any item name to view