Calculate dynamically matches on config
I have a component (.tsx) that needs to calculate dynamically the property of depending on the current tab url.
Any idea?
7 Replies
If it depends on the runtime tab URL, your best bet is to use bgsw to inspect and inject the script
@louis can you please send me an example? I tried a lot of stuff but I can not reach the solution.
I'd lookup the docs on executeScript
but there's no example for this atm
What method should I use to inject the script?
You'd use an executeScript call
yes, but how should looks the function that will modified the matches prop on config?
you will do all of that inside the bgsw instead! - no config at all