Skip to content

Commit

Permalink
chore: some cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyef committed Mar 28, 2020
1 parent c738579 commit e42e353
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions examples/ssr/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ const Home = () => {
const eagerData = useData(
'http://localhost:3000/some-rest-api/1',
{},
// {
// foo: 'bar',
// symbols: '!@#$%^&*()////\\\\\\+_+_+_+-==~`'
// },
{
headers: {
'x-custom-header': 'will only be sent for some-rest-api/1 request',
Expand All @@ -48,7 +44,10 @@ const Home = () => {

const [fetchData, lazyData] = useLazyData(
'http://localhost:3000/some-rest-api/2',
{},
{
foo: 'bar',
symbols: '!@#$%^&*()////\\\\\\+_+_+_+-==~`'
},
{},
{
fetchPolicy: 'network-only',
Expand Down
2 changes: 1 addition & 1 deletion examples/ssr/src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ server.get('/*', async (req: express.Request, res: express.Response) => {
// pass the same dataClient instance you are passing to your provider here
try {
const start = process.hrtime();
markup = await renderToStringWithData(reactApp);;
markup = await renderToStringWithData(reactApp);
time.push(process.hrtime(start));

getResult();
Expand Down

0 comments on commit e42e353

Please sign in to comment.