-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix on #35679 #36668
Fix on #35679 #36668
Conversation
thank you @louismaximepiton for your consistency and for opening again the PR. May I ask one question? The change on line 347 & 448 depends on the other two? Why, I am asking: Lines 376 to 378 in c1813ef
_getTitle is used to resolve this duplication, and in advance, it uses the _resolvePossibleFunction to resolve possible given function. And of course function is not null but maybe returns an empty string or null
So maybe we can initialize Lines 600 to 605 in c1813ef
|
Sorry to re-open with so much delay 😖
No, it's an independent change for me. This is done to reduce the bundle but I might be wrong. The 2 same lines are called in
I think I might have missed something here. You wanna try something like:
Thinking about that, I don't know if this was your idea, but if with actual this._config.title = this._getTitle()
if (!(this._isWithContent() && this._isEnabled)) { // l.197
return
} Then we might need to change |
Probably not
And now we are getting closer to the real problem:
So in each case you are facing a different issue, where NOBODY can be pleased . The question here is what is the best of the two available solutions. After an issue, I was forced to return to the second option. But if we do not resolve in each check our possibly dynamic calls we will be never sure about their real result |
It took a long time for me but I think I finally get to your point (I guess 😅) I wonder if it exists a simple solution like: compute title once per rebuild, store the value and use it where it's needed in order to not compute the potential functions several times (as it is done in main). From what I've seen, it would introduce more complexity to the component and maybe increase bundle size. Do you want me to give a last try for a working sample on what I've in mind? Or should it be kept for |
It wouldn't introduce more complexity, but we would fallback to the previous version, with a cached value (just the case I 'solved' in the previous PR). 😔 |
78e8db8
to
f347907
Compare
0a5420f
to
28f849a
Compare
28f849a
to
10c25d8
Compare
10c25d8
to
5c96764
Compare
Re-open from #36585 (Sorry couldn't re-open on the other one) trying to fix #35679 discussions.
This PR tries to fix the #35679 (comment).