Skip to content

Commit b396c93

Browse files
author
Steven Orvell
committed
Adds comment about an @asyncQuery use case we may support in the future.
1 parent 6451733 commit b396c93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/decorators.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ export function query(selector: string) {
230230
};
231231
}
232232

233+
// Note, in the future, we may extend this decorator to support the use case
234+
// where the queried element may need to do work to become ready to interact
235+
// with (e.g. load some implementation code). If so, we might elect to
236+
// add a second argument defining a function that can be run to make the
237+
// queried element loaded/updated/ready.
233238
/**
234239
* A property decorator that converts a class property into a getter that
235240
* returns a promise that resolves to the result of a querySelector on the

0 commit comments

Comments
 (0)