Frontmatter
| id | 1582 |
| title | core.Base: isConstructed config |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Mar 25, 2021, 4:48 PM |
| updatedAt | Mar 25, 2021, 5:57 PM |
| githubUrl | https://github.com/neomjs/neo/issues/1582 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 25, 2021, 5:57 PM |
core.Base: isConstructed config
tobiu assigned to @tobiu on Mar 25, 2021, 4:48 PM

tobiu
Mar 25, 2021, 5:54 PM
ok, this is impossible, since we can not use configs with a trailing underscore inside core.Base.
instead, we can use isConstructed and trigger a new onAfterConstructed method inside Neo.create().
tobiu changed title from core.Base: isContructed_ config to core.Base: isContructed config on Mar 25, 2021, 5:54 PM
tobiu changed title from core.Base: isContructed config to core.Base: isConstructed config on Mar 25, 2021, 5:56 PM
tobiu closed this issue on Mar 25, 2021, 5:57 PM
defaults to false.
we need a hook inside Neo.create() to change it to true.
afterSetIsConstructed needs to fire an event.