Skip to content
Discussion options

You must be logged in to vote

In general, many of the built-in control-flow components do require 'static bound for a variety of reasons, including both client-side rendering and support for async rendering on the server. If you don't need either of these, then yes, the requirement is stricter than it would need to be if you were designing an HTML templating library from scratch that only supported synchronous, server side rendering without the other pieces.

It is not plausible for us to toggle the lifetime bounds on or off — even if it were even possible (it may or may not be, I am not sure!) it would create a bunch of maintenance overhead for quite a niche feature.

In general, you can use borrowed data for component…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Blechlawine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants