I hereby claim:
- I am rmazeiks on github.
- I am reinis_mazeiks (https://keybase.io/reinis_mazeiks) on keybase.
- I have a public key ASCMooH3HYcKvNdMzupe7fS_SHta1c-Qm61BbnQJOnuk7Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Using `master` version of dioxus | |
// dioxus = { git="https://github.com/DioxusLabs/dioxus.git" } | |
#![allow(non_snake_case)] | |
use dioxus::events::MouseEvent; | |
use dioxus::prelude::*; | |
fn main() { | |
dioxus_desktop::launch(App); |
Refer to the release notes to get more details on these changes
Need to replace old middleware() syntax with @namespace; see documentation
Migration process can be automatised: disable use-namespace rule, enable no-middleware and then npm run eslint:fix. Check for correctness, enable the first rule back and enjoy the new awesome syntax!
Be careful, the automated process is not always correct:
undefined
, and the namespace decorator will be added in an unpredictable location in the file. This is because the conventional way of wrapping mapStateToProps is when using it to connect
, not in the declaration.