Skip to content

Commit ff67b74

Browse files
authored
Fix typos (#13534)
* fix typos * fix typo * fix typo * fix typo * fix typo
1 parent aa00702 commit ff67b74

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ contact_links:
55
about: If you've got an idea for a new feature in React Router, please open a new Discussion with the `Proposals` label
66
- name: 🤔 Usage Question (Github Discussions)
77
url: https://github.com/remix-run/remix/discussions/new?category=q-a
8-
about: Open a Discussion in GitHub wih the `Q&A` label
8+
about: Open a Discussion in GitHub with the `Q&A` label
99
- name: 💬 Remix Discord Channel
1010
url: https://rmx.as/discord
1111
about: Interact with other people using React Router and Remix 📀

decisions/0003-infer-types-for-useloaderdata-and-useactiondata-from-loader-and-action-via-generics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function Route() {
3232
}
3333
```
3434

35-
For end-to-end type safety, it is then the user's responsability to make sure that `loader` and `action` also use the same type in the `json` generic:
35+
For end-to-end type safety, it is then the user's responsibility to make sure that `loader` and `action` also use the same type in the `json` generic:
3636

3737
```ts
3838
export const loader: LoaderFunction = () => {
@@ -108,7 +108,7 @@ export const loader: LoaderFunction = () => {
108108

109109
export default function Route() {
110110
const { birthday } = useLoaderData<MyLoaderData>();
111-
// ^ `useLoaderData` tricks Typescript into thinking this is a `Date`, when in fact its a `string`!
111+
// ^ `useLoaderData` tricks Typescript into thinking this is a `Date`, when in fact it's a `string`!
112112
}
113113
```
114114

@@ -144,7 +144,7 @@ Though `loader` and `useLoaderData` exist together in the same file at developme
144144
Without the `loader` argument to infer types from, `useLoaderData` needs a way to learn about `loader`'s type at compile-time.
145145

146146
Additionally, `loader` and `useLoaderData` are both managed by Remix across the network.
147-
While its true that Remix doesn't "own" the network in the strictest sense, having `useLoaderData` return data that does not correspond to its `loader` is an exceedingly rare edge-case.
147+
While it's true that Remix doesn't "own" the network in the strictest sense, having `useLoaderData` return data that does not correspond to its `loader` is an exceedingly rare edge-case.
148148

149149
Same goes for `useActionData`.
150150

integration/fetcher-layout-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ test("fetcher calls index route loader when at index route", async ({
231231
expect(dataElement.text()).toBe("index data");
232232
});
233233

234-
test("fetcher calls layout route action when at paramaterized route", async ({
234+
test("fetcher calls layout route action when at parameterized route", async ({
235235
page,
236236
}) => {
237237
let app = new PlaywrightFixture(appFixture, page);

integration/helpers/vite-plugin-cloudflare-template/worker-configuration.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5135,7 +5135,7 @@ declare module "assets:*" {
51355135
// https://opensource.org/licenses/Apache-2.0
51365136
declare abstract class PipelineTransform {
51375137
/**
5138-
* transformJson recieves an array of javascript objects which can be
5138+
* transformJson receives an array of javascript objects which can be
51395139
* mutated and returned to the pipeline
51405140
* @param data The data to be mutated
51415141
* @returns A promise containing the mutated data

playground/vite-plugin-cloudflare/worker-configuration.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4272,7 +4272,7 @@ declare module "assets:*" {
42724272
// https://opensource.org/licenses/Apache-2.0
42734273
declare abstract class PipelineTransform {
42744274
/**
4275-
* transformJson recieves an array of javascript objects which can be
4275+
* transformJson receives an array of javascript objects which can be
42764276
* mutated and returned to the pipeline
42774277
* @param data The data to be mutated
42784278
* @returns A promise containing the mutated data

0 commit comments

Comments
 (0)