Giter VIP home page Giter VIP logo

yew_form's Issues

hooks?

i was wondering if there would ever be hooks for this library to use with function components.

Why is get_mut_unchecked required?

Form::state_mut() (see below) calls RC::get_mut_unchecked which is unsafe and nightly only. Unfortunately, it is not documented why this is necessary (and why Rc::get_mut() cannot be used instead). Changing this would allow us to remove the feature requirement. As a result, it would be possible to compile yew_form on stable Rust.

pub(crate) fn state_mut(&mut self) -> &mut FormState<T> {
unsafe {
Rc::get_mut_unchecked(&mut self.state)
}
}

please update yew 0.13

Thanks for your good work on this awesome crate.
yew >0.13 support web_sys, can you upgrade this crate?

Proposal to maintain

Hi!

I can't help but notice that this repository has been inactive (and broken) for a while. I'm working on lldap (https://github.com/lldap/lldap) and I'd like to keep using this repo, especially the associated crate. Would you consider transferring ownership of the crate/repo to me?

Cheers,

Get example panics

Getting this panic on the current master code, my code is the same as in the examples folder, this happens as soon as oninput gets triggered for me.

panicked at 'called Option::unwrap()on aNone value', /Users/dayat/.cargo/registry/src/github.com-1ecc6299db9ec823/yew_form-0.1.7/src/form.rs:24:39

versions:

yew = "0.17.4"
yew_form = "0.1.7"
yew_form_derive = "0.1.7"

Simple example panics

Getting this panic on the current master code, my code is the same as in the examples folder, this happens as soon as oninput gets triggered for me.

webpack:///./frontend/pkg/index_bg.js?:392 panicked at 'called `Option::unwrap()` on a `None` value', /Users/dignifiedquire/.cargo/git/checkouts/yew_form-0d273cf04f678139/f7c824c/yew_form/src/form.rs:24:9

yew_form_derive won't compile with latest syn

Compilation attempt end up with:

Compiling yew_form_derive v0.1.7
error[E0432]: unresolved import `syn::export`
 --> /home/marcin/.cargo/registry/src/github.com-1ecc6299db9ec823/yew_form_derive-0.1.7/src/lib.rs:6:10
  |
6 | use syn::export::{ToTokens, TokenStream};
  |          ^^^^^^ could not find `export` in `syn`

error[E0599]: no method named `to_tokens` found for reference `&syn::Path` in the current scope
  --> /home/marcin/.cargo/registry/src/github.com-1ecc6299db9ec823/yew_form_derive-0.1.7/src/lib.rs:32:22
   |
32 |                 path.to_tokens(&mut tokens);
   |                      ^^^^^^^^^ method not found in `&syn::Path`
   |
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
6  | use crate::quote::ToTokens;
   |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `yew_form_derive`

For more information I recommend refering to this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.