Closed ilyatitovich closed 5 months ago
Changed 'title' to 'url' for candidate.
Try to reload page when some candidate is selected, you will get 404 (you can use staging or call pnpm production
in web/
).
But everything works without candidate in URL.
We use this script to generate web/routes.regexp
and then we are injecting it into nginx config.
Updated pathRouter
for handling page reload and avoiding 404 page.
Updated pathRouter for handling page reload and avoiding 404 page.
But when I press Reload, the candidate
valuer changes.
github.blog
Comments for …
and GitHub Blog
. The Comments are selected by default.GitHub Blog
GitHub Blog
.And during the refresh I see how ?candidate=
is removed and set again.
I think this happens because when we reload the page, setPreviewUrl()
and other processes are ran. Maybe it’s worth providing a cache for the current candidate, for example, in localStore
? We can update it when user type the different URL and clear when user moved to another route from add
route.
Maybe it’s worth providing a cache for the current candidate, for example, in localStore
No, user can open multiple tabs with different URL.
The better is to change setPreviewURL()
logic. For instance, we can not to auto-set candidate if there is something different in router.
Changed logic for auto showing candidate on wide screen.
Thanks! It was much more complex task that we thought in the beginning.
Fixes #201
candidate
inadd
route and logic to createbackRoute
foradd
routecore/preview.ts
candidate
in URl inweb/stores/router.ts
Back
button in mobile navbarI would like to discuss this. Maybe we can improve the code and logic.
Checklist
pnpm test
.scripts/
, add a comment with a description.README.md
.README.md
.core/
. What code will also be useful on other platforms?pnpm size
and check the difference in the JS bundle size. Is it relevant to the changes? Change the limit inweb/.size-limit.json
if necessary.web/main/
files:web/public/404.html
orweb/public/500.html
?index.html
.core/
: