yew-hooks
yew-hooks copied to clipboard
Hooks for Yew, inspired by streamich/react-use and alibaba/hooks.
when reconnection_limit is set to None (or left as default), it will be set to 3. This number is not reflected in the docs and only exist in the code....
It seems that `use_debounce` returns a callback in a triggered state. That is, after the given time elapses the original callback is invoked whether or not the debounced version was...
I need to create a reproducer, but I think there is a bug in the `use_drop` when the ref is placed in a nested context: ```rust #[function_component(Other)] fn other(props: &ChildrenProps)...
I am implementing a component consisting of two part: a toggle and some content. The content is shows using a portal. I do want to use `use_click_away`, but actually both...
I'm using the clipboard handle as an alternative to save files on an application. It seems to work across most browsers when I'm using it to write text to the...
When dropping a file and then something else, the files still seem to be present in the state. I don't see any way to figure out what the last dropped...
I really like this project, especially the `use_async` hook. However, evaluating the state when rendering feels a bit verbose. It feels to me as if this could be improved a...
Assuming a use-case of: * Enter a parameter value * Issue the request (with that parameter) It looks like with the current `use_async` variant, the future already gets created with...
I'm trying to use the `use_websocket_with_options` hook to send a message immediately upon connecting to the server. ```rs #[function_component(App)] pub fn app() -> Html { let ws = yew_hooks::use_websocket_with_options( "ws://mywebsocket".into(),...