Skip to content

Better way to share value in middlelayer functions than using middlelayer::from_fn_with_state? #3212

Answered by HaoYang670
HaoYang670 asked this question in Q&A
Discussion options

You must be logged in to vote

The state you pass to from_fn_with_state does not have to be the same state you use elsewhere.

This can work. Thanks!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@HaoYang670
Comment options

@HaoYang670
Comment options

Answer selected by HaoYang670
@mladedav
Comment options

mladedav Feb 5, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants