Add window guards in jsonapi-client and useSwr
issue