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

Pass data between routes in a more Qwik-styled way #11

Open
Balastrong opened this issue Jan 3, 2024 · 1 comment
Open

Pass data between routes in a more Qwik-styled way #11

Balastrong opened this issue Jan 3, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Balastrong
Copy link
Member

Currently name and size are passed from the home to the bill page with sessionStorage, there should be a more Qwik-styled way to do it.

const onStart = $(() => {
sessionStorage.setItem(
"NEWBILL",
JSON.stringify({
name: "Untitled Bill",
membersCount: 3,
}),
);
nav("/start");
});

@Balastrong Balastrong added enhancement New feature or request help wanted Extra attention is needed labels Jan 3, 2024
@K1ethoang
Copy link
Member

I think our dont need to do like that, we can set default value for nameand membersCount in /start/[...id]/index.tsx
#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants