You need to sign in to do that
Don't have an account?
Vishwas B N
how to set value to Properties
Hi Team,
I am navigating from page A to page B using navigationMixin.navigate and in connectedcallback of page B iam assigning values to the component propery from localStorage.
But when i call another function for logical operation the assigned value as not available.
Can you help me how can i do that..
I am navigating from page A to page B using navigationMixin.navigate and in connectedcallback of page B iam assigning values to the component propery from localStorage.
But when i call another function for logical operation the assigned value as not available.
Can you help me how can i do that..
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_page_reference_type
now when you are retrieving those query parameters in component B, instead of using connectedcallback you can use the @wire pagereference to get the query parameters and do your logic.
For reference you can refer to this @wire pageReference module
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_navigate_add_params_url
Hope this answers to your question, if so please can you mark this as best answer for future reference.