-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
83 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"Remix loader function": { | ||
"prefix": "rxl", | ||
"body": [ | ||
"import { type LoaderFunction, json } from '@remix-run/node'", | ||
"import { useLoaderData } from '@remix-run/react'", | ||
"", | ||
"export const loader: LoaderFunction = async () => {", | ||
"\treturn json({ ok: true })", | ||
"}" | ||
], | ||
"description": "Remix loader function" | ||
}, | ||
"Remix action function": { | ||
"prefix": "rxa", | ||
"body": [ | ||
"import { type ActionFunction, json } from '@remix-run/node'", | ||
"", | ||
"export const action: ActionFunction = async ({ request }) => {", | ||
"\treturn json({ ok: true })", | ||
"}" | ||
], | ||
"description": "Remix action function" | ||
}, | ||
"Remix meta function": { | ||
"prefix": "rxm", | ||
"body": [ | ||
"import { type MetaFunction } from '@remix-run/node'", | ||
"", | ||
"export const meta: MetaFunction = () => {", | ||
"\treturn [", | ||
"\t\t{ title: ''},", | ||
"\t\t{ name: 'description', content: ''}", | ||
"\t]", | ||
"}" | ||
], | ||
"description": "Remix meta function" | ||
}, | ||
"Remix links function": { | ||
"prefix": "rxi", | ||
"body": [ | ||
"import { type LinksFunction } from '@remix-run/node'", | ||
"", | ||
"export const links: LinksFunction = () => {", | ||
"\treturn [", | ||
"\t\t{", | ||
"\t\t}", | ||
"\t]", | ||
"}" | ||
], | ||
"description": "Remix links function" | ||
} | ||
} |