A
A
Aleksey ladutska2020-04-21 14:45:31
JavaScript
Aleksey ladutska, 2020-04-21 14:45:31

Pass params in address bar without page reload?

I receive data through the Chrome Extension and send it through the address bar as parameters, and then I update the address bar in the desired browser tab.
Can I pass parameters without reloading the page and track changes in the address bar via React(router)?

There is an address: https://site.com - the page is loaded
I pass the parameters: https://site.com?type=test - I pass data for the popup, I want to redraw only those elements where the new params values ​​have affected, and not the entire page .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tervizator, 2020-04-21
@ladutia

It's not very clear what you want, it would be great to see your code, it would be clearer
) the router at the page has changed
Regarding redrawing, then try to break the code into smaller parts, such as when the data arrives, then redraw, only a small component, and not all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question