mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
move tags outside loader
This commit is contained in:
parent
c0dd8c46ad
commit
0526fe8a33
2 changed files with 8 additions and 10 deletions
|
|
@ -1,7 +0,0 @@
|
|||
import React from 'react';
|
||||
import { FilterProvider } from './src/context/FilterContext';
|
||||
import './static/fonts.css';
|
||||
|
||||
export const wrapRootElement = ({ element }) => (
|
||||
<FilterProvider>{element}</FilterProvider>
|
||||
);
|
||||
11
src/root.tsx
11
src/root.tsx
|
|
@ -15,11 +15,16 @@ export const links: LinksFunction = () => [
|
|||
{ rel: 'stylesheet', href: styles },
|
||||
];
|
||||
|
||||
|
||||
const tagsData = tags();
|
||||
const countriesData = countries();
|
||||
const devicesData = devices();
|
||||
|
||||
export function loader() {
|
||||
return {
|
||||
tags: tags(),
|
||||
countries: countries(),
|
||||
devices: devices(),
|
||||
tags: tagsData,
|
||||
countries: countriesData,
|
||||
devices: devicesData,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue