mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Replace deprecated methods
This commit is contained in:
parent
1ffcffa1f4
commit
16ae8af889
2 changed files with 4 additions and 4 deletions
|
@ -16,13 +16,13 @@ function Home({ hidden }) {
|
|||
const [uiState, setUIState] = useState('default');
|
||||
const [showMore, setShowMore] = useState(false);
|
||||
|
||||
const statusIterator = useRef(
|
||||
masto.timelines.getHomeIterable({
|
||||
const homeIterator = useRef(
|
||||
masto.timelines.iterateHome({
|
||||
limit: LIMIT,
|
||||
}),
|
||||
).current;
|
||||
async function fetchStatuses(firstLoad) {
|
||||
const allStatuses = await statusIterator.next(
|
||||
const allStatuses = await homeIterator.next(
|
||||
firstLoad
|
||||
? {
|
||||
limit: LIMIT,
|
||||
|
|
|
@ -207,7 +207,7 @@ function Notifications() {
|
|||
const [onlyMentions, setOnlyMentions] = useState(false);
|
||||
|
||||
const notificationsIterator = useRef(
|
||||
masto.notifications.getIterator({
|
||||
masto.notifications.iterate({
|
||||
limit: LIMIT,
|
||||
}),
|
||||
).current;
|
||||
|
|
Loading…
Add table
Reference in a new issue