Synphonyte / leptos-use

Collection of essential Leptos utilities inspired by React-Use / VueUse
https://leptos-use.rs/
Apache License 2.0
328 stars 72 forks source link

Progress towards Leptos 0.7.0-alpha #133

Closed CorvusPrudens closed 3 months ago

CorvusPrudens commented 3 months ago

This PR makes progress towards updating leptos-use for Leptos 0.7 (now on 0.7.0-alpha).

Given the extensive nature of these changes, this PR may be impractical from a review standpoint. However, it may at least be useful as a point of reference for what needs to be done.

There are four main blockers at the moment:

  1. It appears queue_microtasks is not yet implemented in 0.7
  2. watch is not yet implemented in 0.7 as noted here on Discord.
  3. There is no equivalent to leptos::ev::Custom. This may simply be an oversight, as it appears to be very simple.
  4. The HtmlElement struct has gotten much more complicated and I'm not sure what the best approach is for managing ElementMaybeSignal-related code.

With all this in mind, it seems like the most helpful way forward would be implementing the missing items in 1-3, and that might be pretty easy!

In any case, I hope this helps!

maccesch commented 3 months ago

So far everything seemed very good. So I merged. I'm very glad that you do this major port! So do whatever is most comfortable for you and open the next PR with any progress you have 👍🏼