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

How does one reload a @:loaded ? #1

Open
kevinresol opened this issue Jun 23, 2021 · 0 comments
Open

How does one reload a @:loaded ? #1

kevinresol opened this issue Jun 23, 2021 · 0 comments

Comments

@kevinresol
Copy link
Member

Add a FAQ page or something to introduce solutions to common problems

you can manually add some dependency and then change that
e.g.
@:editable var revision:Int = 0;
@:constant var loadData:()->Promise<Data>;
@:loaded var data:Data = {revision; loadData()};

public function refresh()
    revision++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant