Skip to content

Commit

Permalink
fix : onAfterLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
flamecommit committed Sep 5, 2023
1 parent db70d49 commit f898a2f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package/CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### Fix

- activate the passive option of touchstart, touchmove.
- multiple "onAfterLoad" runs.

## 1.3.0

Expand Down
2 changes: 1 addition & 1 deletion package/src/components/FullpageContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function FullpageContainer({
if (isLoaded && onAfterLoad) {
onAfterLoad(container);
}
}, [isLoaded, onAfterLoad]);
}, [isLoaded]);

/**
* Container 마운트에 <html> 태그에 Class를 추가하고, 언마운트에 제거합니다.
Expand Down
4 changes: 2 additions & 2 deletions test/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { Route, Routes } from 'react-router-dom';
import Home from './routes/home';
import Fullpage from './routes/fullpage';
import Home from './routes/Home';
import Fullpage from './routes/Fullpage';

function App() {
return (
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f898a2f

Please sign in to comment.