Skip to content

Commit

Permalink
fix demo build
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Jul 27, 2024
1 parent 9351588 commit 43c1e67
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 201 deletions.
3 changes: 1 addition & 2 deletions compat/src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
} from 'preact/hooks';
import {
useDeferredValue,
useInsertionEffect,
useSyncExternalStore,
useTransition
} from './index';
Expand Down Expand Up @@ -297,7 +296,7 @@ export const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
useEffect,
useId,
useImperativeHandle,
useInsertionEffect,
useInsertionEffect: useLayoutEffect,
useLayoutEffect,
useMemo,
// useMutableSource, // experimental-only and replaced by uSES, likely not worth supporting
Expand Down
4 changes: 2 additions & 2 deletions demo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import NestedSuspenseBug from './nested-suspense';
import Contenteditable from './contenteditable';
import { MobXDemo } from './mobx';
import Zustand from './zustand';
import ReduxToolkit from './redux_toolkit';
import ReduxToolkit from './redux-toolkit';

let isBenchmark = /(\/spiral|\/pythagoras|[#&]bench)/g.test(
window.location.href
Expand Down Expand Up @@ -140,7 +140,7 @@ class App extends Component {
<Link href="/zustand" activeClassName="active">
zustand
</Link>
<Link href="/redux-toolkit" activeClassName="active">
<Link href="/demo/redux-toolkit" activeClassName="active">
redux-toolkit
</Link>
</nav>
Expand Down
Loading

0 comments on commit 43c1e67

Please sign in to comment.