chimon2000 / chimon2000/async_loader

Invert control of loading

Open
#16 0 comments 0 reactions 1 assignee Claimed by @chimon2000 View on GitHub
enhancement
Dominant language
Dart
Stars
100
Forks
16
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

Currently, the future is executed soon as the widget is rendered. Should allow for more fine grained control of loading.

**Describe the solution you'd like**

Add a `loadOnMount` property
- Triggers whether or not the future is executed on default
- Default to **true**

Add a `load` function to builder props.
- Triggers load / reload future when executed

**Describe alternatives you've considered**

N/A

**Additional context**

https://github.com/jxom/react-loads#loadonmount

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.