Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #164 from jamesplease/update-github-username
Browse files Browse the repository at this point in the history
Update GitHub username to point to jamesplease
  • Loading branch information
jamesplease authored Apr 21, 2018
2 parents c00e7bc + 8eefb0a commit b6d06c6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class App extends Component {

Need to make multiple requests? You can use any tool that you would like that
allows you to "compose" render prop components together. This example
uses [React Composer](https://github.com/jmeas/react-composer):
uses [React Composer](https://github.com/jamesplease/react-composer):

```jsx
import React, { Component } from 'react';
Expand Down Expand Up @@ -145,7 +145,7 @@ class App extends Component {

These examples just scratch the surface of what React Request can do for you.
Check out the API reference below, or
[read the guides](https://github.com/jmeas/react-request/blob/master/docs/guides/INDEX.md),
[read the guides](https://github.com/jamesplease/react-request/blob/master/docs/guides/INDEX.md),
to learn more.

### API
Expand Down Expand Up @@ -445,7 +445,7 @@ Defaults to `true`.
A string that is used to control the request deduplication and response caching features. By default,
a key is generated for you. Specifying a custom key is an advanced feature that you may not need.
For more, see the [request key](https://github.com/jmeas/react-request/blob/master/docs/guides/request-keys.md)
For more, see the [request key](https://github.com/jamesplease/react-request/blob/master/docs/guides/request-keys.md)
guide.
---
Expand All @@ -454,32 +454,32 @@ The rest of the API documentation describes the other named exports from the `re
#### `fetchDedupe( input [, init] [, dedupeOptions] )`
This is the `fetchDedupe` export from the [Fetch Dedupe](https://github.com/jmeas/fetch-dedupe)
This is the `fetchDedupe` export from the [Fetch Dedupe](https://github.com/jamesplease/fetch-dedupe)
library. Fetch Dedupe powers the request deduplication in React Request.
If, for whatever reason, you need to make a standalone HTTP request outside of the
`<Fetch />` component, then you can use this with confidence that you won't send a
duplicate request.
For more, refer to [the documentation of fetch-dedupe](https://github.com/jmeas/fetch-dedupe).
For more, refer to [the documentation of fetch-dedupe](https://github.com/jamesplease/fetch-dedupe).
#### `getRequestKey({ url, method, body, responseType })`
Generates a request key. All of the values are optional.
This method comes from [`fetch-dedupe`](https://github.com/jmeas/fetch-dedupe).
This method comes from [`fetch-dedupe`](https://github.com/jamesplease/fetch-dedupe).
#### `isRequestInFlight( requestKey )`
Return a Boolean representing if a request for `requestKey` is in flight or not.
This method comes from [`fetch-dedupe`](https://github.com/jmeas/fetch-dedupe).
This method comes from [`fetch-dedupe`](https://github.com/jamesplease/fetch-dedupe).
#### `clearRequestCache()`
Wipes the cache of deduped requests. Mostly useful for testing.
This method comes from [`fetch-dedupe`](https://github.com/jmeas/fetch-dedupe).
This method comes from [`fetch-dedupe`](https://github.com/jamesplease/fetch-dedupe).
> Note: this method is not safe to use in application code.
Expand Down
2 changes: 1 addition & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# FAQ

Here are some answers to common questions. Don't see yours here?
[Open an issue](https://github.com/jmeas/react-request/issues/new) and
[Open an issue](https://github.com/jamesplease/react-request/issues/new) and
we would be happy to help.

#### Why was this created?
Expand Down
18 changes: 9 additions & 9 deletions docs/examples.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Examples

A number of examples are distributed with the library's
[source code](https://github.com/jmeas/react-request).
[source code](https://github.com/jamesplease/react-request).

### Simple Read

To run this example:

```
git clone https://github.com/jmeas/react-request.git
git clone https://github.com/jamesplease/react-request.git
cd react-request/examples/simple-read
npm install
Expand All @@ -25,7 +25,7 @@ when the component mounts.
To run this example:

```
git clone https://github.com/jmeas/react-request.git
git clone https://github.com/jamesplease/react-request.git
cd react-request/examples/lazy-read
npm install
Expand All @@ -43,7 +43,7 @@ must click a button to make the request.
To run this example:

```
git clone https://github.com/jmeas/react-request.git
git clone https://github.com/jamesplease/react-request.git
cd react-request/examples/updating-a-resource
npm install
Expand All @@ -61,7 +61,7 @@ typically used in your application.
To run this example:

```
git clone https://github.com/jmeas/react-request.git
git clone https://github.com/jamesplease/react-request.git
cd react-request/examples/multiple-requests
npm install
Expand All @@ -71,15 +71,15 @@ open http://localhost:3000/
```

Sometimes, you will need access to multiple requests at the same time. This
example demonstrates using the [React Composer](https://github.com/jmeas/react-composer)
example demonstrates using the [React Composer](https://github.com/jamesplease/react-composer)
library to do that.

### Request Deduplication

To run this example:

```
git clone https://github.com/jmeas/react-request.git
git clone https://github.com/jamesplease/react-request.git
cd react-request/examples/request-deduplication
npm install
Expand All @@ -95,7 +95,7 @@ This example demonstrates how many requests of the same kind are deduplicated by
To run this example:

```
git clone https://github.com/jmeas/react-request.git
git clone https://github.com/jamesplease/react-request.git
cd react-request/examples/response-caching
npm install
Expand All @@ -113,7 +113,7 @@ making a second request.
To run this example:

```
git clone https://github.com/jmeas/react-request.git
git clone https://github.com/jamesplease/react-request.git
cd react-request/examples/fetch-components
npm install
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/aborting.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ Browsers will soon support an API to allow developers to
requests within React Request currently is not currently supported, but it is on the
project roadmap.

For more, refer to [this GitHub issue](https://github.com/jmeas/react-request/issues/26).
For more, refer to [this GitHub issue](https://github.com/jamesplease/react-request/issues/26).

### Pseudo-aborts

The `<Fetch/>` component will "pseudo-abort" requests. With a faux-abort, the actual HTTP request
will not be aborted, but there are situations when the response will be ignored:

1. When the component unmounts
2. When a new request is initiated while an existing request is already in flight
1. When the component unmounts
2. When a new request is initiated while an existing request is already in flight

In these situations, `onResponse` will be called with an error that has a `name` equal
to `AbortError`.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/jmeas/react-request.git"
"url": "https://github.com/jamesplease/react-request.git"
},
"keywords": [
"react",
Expand All @@ -41,7 +41,7 @@
"author": "James Smith <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/jmeas/react-request/issues"
"url": "https://github.com/jamesplease/react-request/issues"
},
"files": [
"dist",
Expand Down

0 comments on commit b6d06c6

Please sign in to comment.