Isomorphic fetcher which works on both client and server side