Skip to content

Commit

Permalink
Implement RSC support
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jul 21, 2023
1 parent a8262e6 commit 5d83d58
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Document.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

/**
* Loads a PDF document. Passes it to all children.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/DocumentContext.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { createContext } from 'react';

import type { DocumentContextType } from './shared/types';
Expand Down
2 changes: 2 additions & 0 deletions src/Outline.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import React, { useEffect, useMemo } from 'react';
import PropTypes from 'prop-types';
import makeCancellable from 'make-cancellable-promise';
Expand Down
2 changes: 2 additions & 0 deletions src/OutlineContext.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { createContext } from 'react';

import type { OutlineContextType } from './shared/types';
Expand Down
2 changes: 2 additions & 0 deletions src/Page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import React, { useEffect, useMemo, useRef } from 'react';
import PropTypes from 'prop-types';
import makeCancellable from 'make-cancellable-promise';
Expand Down
2 changes: 2 additions & 0 deletions src/PageContext.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { createContext } from 'react';

import type { PageContextType } from './shared/types';
Expand Down
2 changes: 2 additions & 0 deletions src/Thumbnail.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import React from 'react';
import clsx from 'clsx';
import invariant from 'tiny-invariant';
Expand Down

0 comments on commit 5d83d58

Please sign in to comment.