mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Remove subtle render delay with timeline notification button (#8860)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { next } from "@ember/runloop";
|
||||
import { scheduleOnce } from "@ember/runloop";
|
||||
import { setOwner, getOwner } from "@ember/application";
|
||||
|
||||
export default class ComponentConnector {
|
||||
@@ -16,7 +16,7 @@ export default class ComponentConnector {
|
||||
const elem = $elem[0];
|
||||
const { opts, widget, componentName } = this;
|
||||
|
||||
next(() => {
|
||||
scheduleOnce("afterRender", this, () => {
|
||||
const mounted = widget._findView();
|
||||
|
||||
const view = widget.register
|
||||
|
||||
Reference in New Issue
Block a user