Skip to content

Feature Request: Add refetch #91

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

Closed
dgreif opened this issue Dec 14, 2022 · 1 comment
Closed

Feature Request: Add refetch #91

dgreif opened this issue Dec 14, 2022 · 1 comment

Comments

@dgreif
Copy link

dgreif commented Dec 14, 2022

We have some specific use cases for include-fragment where we want to re-fetch the content, such as include fragments with polling or a refresh button. Previously this was done with something like the following:

const url = el.getAttribute('src')
el.setAttribute('src', '')
el.setAttribute('src', url)

Unfortunately this approach is currently blocked by #90. Even if that is fixed, it would still be really nice if this was a feature with built in support. For example, it would be much nicer to be able to simple call el.refresh() or something along those lines.

@manuelpuyol
Copy link
Contributor

closed by #92

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

No branches or pull requests

2 participants