feat: integrate dioxus-logger inline (#3302)

* feat: integrate dioxus-logger inline

* remove log/simple logger references

* fix: add dioxus-data-id-0 to root elements to not emit errors internally

* drop config.toml and use cargo.toml profiles instead

* make clippy happy with the unit value lint

* feat: better presentation for logging
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-12-06 16:27:05 -08:00
1 parent 995a529b2f
commit 7d490dc3bd
36 files changed
+255 -169

No files matched your search

+4 -1
View File
@@ -31,7 +31,7 @@ export class BaseInterpreter {
// sledgehammer is generating this...
m: any;
constructor() {}
constructor() { }
initialize(root: HTMLElement, handler: EventListener | null = null) {
this.global = {};
@@ -43,6 +43,9 @@ export class BaseInterpreter {
this.templates = {};
this.handler = handler;
// make sure to set the root element's ID so it still registers events
root.setAttribute('data-dioxus-id', "0");
}
handleResizeEvent(entry: ResizeObserverEntry) {