I\'m writing file-manager app using api requests This is my fetch function (i\'m updating state (example url and path) dynamicly when clicking on a buttons on a screen):