lazy loading assemblies not working when using @ref attribute in the component

I download the lazy-load demo from github,and add @ref on SfButton tag,then run the application,It's error.

Syncfusion Demo Site:https://github.com/SyncfusionExamples/blazor-lazy-loading

there is a same issue on aspnetcore's github site:

https://github.com/dotnet/aspnetcore/issues/29342



the same problem is also on the RichTextEditor, using the Tools attribute definition




Looking forward to your reply


5 Replies

JL Joshna Lingala Uthama Reddy Lingala Syncfusion Team December 28, 2021 07:48 AM UTC

Hi Bingxueyinlian, 
 
Greetings from Syncfusion Support. 
 
We have validated the reported issue for “RichTextEditor is throwing exception in lazy loading” at our end. Unfortunately, we are unable to replicate the issue at our end. However, we have added the RichTextEditor in the GitHub sample and run the sample, the component rendered successfully without any issues. Please find the sample from the below link 
 
 
Kindly try with the above sample and get back to us if you have any queries. 
 
Regards, 
Joshna L 
 



YS Yan Shaonan December 28, 2021 10:25 AM UTC

I add a BlazorWebAssemblyLazyLoad for  RichTextEditor , It will throw an exception.

Don’t need to add this tag?





IS Indrajith Srinivasan Syncfusion Team December 29, 2021 10:23 AM UTC

We suggest you to load, only the dependencies for the SfRichTextEditor to resolve the reported issue. We have also prepared a sample meeting your requirements. 
 



YS Yan Shaonan December 29, 2021 10:37 AM UTC

ok, and about "@ref" problem , is there any other solution?



JL Joshna Lingala Uthama Reddy Lingala Syncfusion Team December 31, 2021 11:13 AM UTC

Hi Yan, 
 
As “@ref” is used for generating dynamic reference for the component and in lazy loading the issue is with the framework issue, we need to wait till the issue is resolved from Microsoft end. 
 
Regards, 
Joshna L 
 


Loader.
Up arrow icon