SPFx Webparts - Intercepting Query String Changes -Error when traversing between items in Left nav


I am working in Sharepoint online 2019 with SPFx Webparts. We had a requirement to change query string (added filter)

in application spfx webpart with kendo grid. It got changed in URL but the grid not reloaded. So we used Intercepting query logic by referring https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/intercepting-query-changes-i....

Everything works fine inside the webpart. Query changed in URL reflected in grid and data loaded based on query string.

Now the issue is when we traverse between items in left navigation (between the applications)

"Cannot read property 'web' of undefined"

"Cannot read property 'wrapper' of undefined"

error is coming.(kindly see attachment).

Before implementing Query intercepting it was working fine.

Couldn't find the solution to fix this issue. Please help!!!


Is there anything to deal with Webpart rendering?!! Any help!

0 Replies