Closed chuanlin2018 closed 2 years ago
I'm concerned about the solution for item 6 above. If the browser is under heavy load and slow to complete, will we just see this problem again? It makes me wonder if ngAfterViewInit()
is the right event hook method to use. If it is (and it sounds like it should be), then perhaps this is the correct way to deal with it. If you haven't already, you might double check the component lifecycle docs.
At this point, I'm inclined to accept this fix if the testing works out.
Okay, the more I think about the item 6 fix, the more it seems like it should be okay.
There is a variable _showContent that controls what time to display the LP content. This variable is controlled by editControl component. I believe when landingpage component tried to access the stickyMenu div, _showContent was not set to true yet. But it was so close that setTimeOut() function has enough delay time for editControl to finish.
I agree that there is a risk that the same error might occur under certain condition. But so far it seems to be fine. I will check the code again to see if there is a better way to handle this.
From: Ray Plante @.> Date: Friday, May 27, 2022 at 4:31 PM To: usnistgov/oar-pdr @.> Cc: Lin, Chuan (Assoc) @.>, Author @.> Subject: Re: [usnistgov/oar-pdr] Fixed keyword filter dropdown menu; Made Science Theme page 508 compl… (PR #251)
I'm concerned about the solution for item 6 above. If the browser is under heavy load and slow to complete, will we just see this problem again? It makes me wonder if ngAfterViewInit() is the right event hook method to use. If it is (and it sounds like it should be), then perhaps this is the correct way to deal with it. If you haven't already, you might double check the component lifecycle docshttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fangular.io%2Fguide%2Flifecycle-hooks&data=05%7C01%7Cchuan.lin%40nist.gov%7C12a22d5e664a49b65c3608da401fe43e%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C637892802959544976%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UprW7AY%2FzFHgNOudA7zsMgvrjXtHEU8jHkZWvJ574wY%3D&reserved=0.
At this point, I'm inclined to accept this fix if the testing works out.
— Reply to this email directly, view it on GitHubhttps://github.com/usnistgov/oar-pdr/pull/251#issuecomment-1140012082, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKQHD3ENMXQ37SMU34RCZZDVMEWKFANCNFSM5XFDLLHA. You are receiving this because you authored the thread.Message ID: @.***>
thanks!
…iant; Improved filters performance; other minor fixes
This check in did the following fixes:
Also tested server side rendering locally.