Skip to content

docs(pages/gotchas): make more clear what's good/bad in unstable_createFileUploadHandler example#2722

Merged
kentcdodds merged 1 commit intoremix-run:mainfrom
MichaelDeBoey:patch-1
Apr 15, 2022
Merged

docs(pages/gotchas): make more clear what's good/bad in unstable_createFileUploadHandler example#2722
kentcdodds merged 1 commit intoremix-run:mainfrom
MichaelDeBoey:patch-1

Conversation

@MichaelDeBoey
Copy link
Copy Markdown
Member

Follow-up of #2704

Copy link
Copy Markdown
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement! Thanks!

@kentcdodds kentcdodds merged commit 1504c72 into remix-run:main Apr 15, 2022
@MichaelDeBoey MichaelDeBoey deleted the patch-1 branch April 15, 2022 08:52
Copy link
Copy Markdown
Contributor

@chaance chaance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor request, looks good otherwise! lol didn't see that this was already merged 🙃

For example, you can't import "fs-extra" directly into a route module:

```js lines=[2] filename=app/routes/index.jsx bad
```jsx bad filename=app/routes/index.jsx lines=[2] nocopy
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well TIL that we have the nocopy feature, nice add!

```tsx filename=app/routes/some-route.jsx
So instead of doing:

```jsx bad filename=app/routes/some-route.jsx lines=[3-6]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanna add nocopy here as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants