Skip to content

Commit a54979d

Browse files
Note on just walking the component tree in NGContext to get the page()
1 parent 64a024d commit a54979d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ng-appserver/src/main/java/ng/appserver/NGContext.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ public void setComponent( final NGComponent component ) {
136136
*/
137137
public NGComponent page() {
138138
return _page;
139+
140+
// FIXME:
141+
// We theoretically could just walk up the tree and check for the root-level component to get the page
142+
// We're going to have to look into that while considering (a) performance and (b) stateless components
143+
// // Hugi 2025-06-08
144+
//
145+
// NGComponent current = component();
146+
//
147+
// while( current.parent() != null ) {
148+
// current = current.parent();
149+
// }
150+
//
151+
// return current;
139152
}
140153

141154
/**

0 commit comments

Comments
 (0)