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

Partials #166

Open
mfulton26 opened this issue May 2, 2024 · 2 comments
Open

Partials #166

mfulton26 opened this issue May 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mfulton26
Copy link

What is the feature you are proposing?

Maybe there is a better name for this but I'd like to be able to change routes (e.g. clicking a link) and if the page I'm navigating to has some of the same content (e.g. header, footer, sidebar, etc.) then the inner HTML gets updated with the diff rather than loading an entirely new document.

This will cause the app to feel like a single page app from the user's perspective (even though it's really a multiple page app).

This will also help retain state for input, select, textarea, etc. as well as for more complicated things like a Google Maps rendering on the page where navigating around keeps the map loaded but other content around or on the map change as the route changes.

@mfulton26 mfulton26 added the enhancement New feature or request label May 2, 2024
@yusukebe
Copy link
Member

yusukebe commented Jun 4, 2024

I also want to the feature like it. The Fresh has a similar feature named Partials: https://fresh.deno.dev/docs/concepts/partials

@goisaki
Copy link
Contributor

goisaki commented Aug 23, 2024

Related: honojs/hono#1946

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

No branches or pull requests

3 participants