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

Provide URL parameters for me.page #514

Closed
wwwillchen opened this issue Jun 24, 2024 · 0 comments
Closed

Provide URL parameters for me.page #514

wwwillchen opened this issue Jun 24, 2024 · 0 comments
Labels
feature request New feature / API

Comments

@wwwillchen
Copy link
Collaborator

Similar to #340, but in addition it would be nice to have something like this:

@me.page(path="/book/:bookId", on_load=load)
def page():
   ...

def load(e: me.LoadEvent):
  me.state(State).bookId = e.params["bookId"]
@wwwillchen wwwillchen added the feature request New feature / API label Jun 24, 2024
@wwwillchen wwwillchen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature / API
Projects
None yet
Development

No branches or pull requests

1 participant