Giter Site home page Giter Site logo

yew-router's Introduction

Yew Router (fork)

This is fork of version 0.15 of the yew-router.

Motivation

The main motivation behind the fork is the lack of nested router support in the 0.16 release. This fork ports the 0.15 router from Yew 0.18 to Yew 0.19 and renames it to yew-router-nested.

Also see: yewstack/yew#1853

Using

You can use this by patching the yew-router dependency in your Cargo.toml:

[dependencies]
yew-router-nested = "0.16"

If you want to keep yew_router as the module name, you can use:

[dependencies]
yew-router = { version = "0.16", package="yew-router-nested" }

Migration

While this should mostly be a drop-in replacement for the 0.15 router, there may be a few steps required to migrate:

  • The name of the crate is yew-router-nested.
  • When using Switch in Properties, it may be necessary to also make the types implementing switch PartialEq and Clone. This is required due to the new requirement of Properties to implement PartialEq.

yew-router's People

Contributors

ctron avatar

Stargazers

Tahara Yoshinori avatar Murray Leigh avatar

Watchers

 avatar  avatar

Forkers

quek

yew-router's Issues

Migrate to Yew 0.20

This should be migrated to Yew 0.20. However, as the yew-agent feature seems to be gone (at least the "classic" agent stuff), this might be tricky.

How to redirect after login

I am trying to make a login using reqwasm, and I would like to redirect to home page after this request success. When using I could do it using this:

let history = ctx.link().history().unwrap();
history.push(new_route);

Thanks!

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.