Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 23 at 21:38 | vote | accept | Lucy Johnston | ||
| Jan 23 at 18:00 | answer | added | Drew Reese | timelinescore: 1 | |
| Jan 23 at 17:23 | comment | added | Lucy Johnston | Yes, the latter. I would like to pass the string value, but I don't understand how from the docs. I've updated my post with an example. Thank you! | |
| Jan 23 at 17:23 | history | edited | Lucy Johnston | CC BY-SA 4.0 | added 455 characters in body |
| Jan 23 at 16:04 | comment | added | Drew Reese | Is the base URL actually variable/dynamic, i.e. does it change after the API slice is created, or do you just need to know what it is when the API slice and store are created? "I have userId when the store is created" - leads me to think it's the latter case, and if so, is there any issue with just passing the computedbaseURL string value when the slice and state are created? Do you have aminimal reproducible example of the code you are working with? | |
| Jan 23 at 15:56 | history | asked | Lucy Johnston | CC BY-SA 4.0 |