Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ #71

Open
MartinKavik opened this issue Aug 8, 2020 · 2 comments
Open

FAQ #71

MartinKavik opened this issue Aug 8, 2020 · 2 comments

Comments

@MartinKavik
Copy link
Member

One thing that could help is to compile a FAQ that works like this website: http://microjs.com/ i.e. there is a list of the things that people commonly ask how to do them, and then, as an answer, the site shows one small paragraph that explains, and a link to the corresponding example. So, there would be "I need to..." and a choice box. One choice: "redirect to another URL". Answer: "The Seed way to work with the browser URL is to use the URL subscription API (link). All you have to do to redirect to another page is to notify the UrlRequested subscription like this: orders.notify(subs::UrlRequested::new(url))".

@sabine - seed-rs/seed#433 (comment)

@TatriX
Copy link
Member

TatriX commented Sep 4, 2020

I can't see tag![] on my page! or I can't see changes I've made!

Typically this can happen for one or several reasons:

  • Old WASM is cached. Enable "disable cache" in network tab of your dev tools.
  • Ensure you did rebuild your WASM. For example remove target/*.wasm file or cargo clean then check that page gives you corresponding error, and finally recompile.
  • Ensure that you have only one instance of dev server, as old forgotten dev server can handle requests. Kill the server and check that you got appropriate error, and then run it again.

@TatriX
Copy link
Member

TatriX commented Sep 11, 2020

How to get current url/location?
Either use url param of your init function which you pass to App::start or just call Url::current().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants