futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
366 stars 22 forks source link

the trait bound `yew::Classes: From<StyleSource>` is not satisfied #86

Closed simbleau closed 1 year ago

simbleau commented 1 year ago

Title.

Due to https://github.com/yewstack/yew/issues/2848, I am forced to upgrade to master.

Unfortunately I rely heavily on stylist, and in master <div class={ css!(..) } /> no longer compiles, since the trait bound yew::Classes: From<StyleSource> is not satisfied

futursolo commented 1 year ago

Currently, stylist depends on 0.19 which is not compatible with master.

You can track the progress in #69.

BTW, you can use use_location to listen to location changes in both Yew 0.19 and master.

simbleau commented 1 year ago

D'oh! I thought use_location was only in master. :) +1

That solves that.