Reinis Mazeiks

Results 40 comments of Reinis Mazeiks

Hi! What platforms do you need to support? For native windows/mac/linux, [artboard](https://lib.rs/crates/arboard) might be what you're looking for. For wasm, I don't know. I haven't done any of this myself....

Searching for clipboard+wasm, I found `yew-hooks` – not what you need, but it has a [`use_clipboard`](https://github.com/jetli/yew-hooks/blob/11387ce9a9c8ab27e07b98315309de8c3a55dd7a/crates/yew-hooks/src/hooks/use_clipboard.rs#L126) hook, which we can use as reference. They use [`wasm_bindgen`](https://rustwasm.github.io/docs/wasm-bindgen/) to access the clipboard...

Welp, apparently there's an easier way >```let clipboard = window()?.navigator().clipboard()?;``` https://docs.rs/web-sys/latest/web_sys/struct.Clipboard.html

I can confirm that this is an issue on Linux as well, `0.2.4` and `master`. Thanks for the report!

> Essentially you'd pin+box the value and then snatch it from up the tree. For what it's worth, *const T is clone so you could build a hook that uses...

After more thought, I've come to the conclusion that my requirements are inherently unsafe. 1. We want an ancestor component to have a handle that provides mutable access to the...

Agreed, this would be a nice feature! In the meantime, consider workarounds: - Using a library for these dialogs. [native-dialog](https://lib.rs/crates/native-dialog) sounds like what you're looking for - For files, ``...

You can use `Option` which defaults to `None`, and then you can call [`.unwrap_or(true)`](https://doc.rust-lang.org/std/option/enum.Option.html#method.unwrap_or) – this will give you the specified value, or `true` if not specified. In my opinion,...

Thanks for catching this! I had included the wrong example there.

Hi, Thanks for your interest! I often find it helpful to start by improving the docs – it helps you get familiar with the codebase. Dioxus has mdbook guides, and...