mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
revert to fix hooks deps
This commit is contained in:
@@ -83,7 +83,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
if (index !== undefined) {
|
if (index !== undefined) {
|
||||||
setPendingCommentIndex(index);
|
setPendingCommentIndex(index);
|
||||||
}
|
}
|
||||||
}, [index, location, setPendingCommentIndex]);
|
}, [index, location]);
|
||||||
|
|
||||||
|
|
||||||
const resetFields = () => {
|
const resetFields = () => {
|
||||||
@@ -122,7 +122,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
closeModal();
|
closeModal();
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
}, [publishCommentOptions, closeModal, publishComment]);
|
}, [publishCommentOptions]);
|
||||||
|
|
||||||
|
|
||||||
const getChallengeAnswersFromUser = async (challenges) => {
|
const getChallengeAnswersFromUser = async (challenges) => {
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ const Board = () => {
|
|||||||
setPendingCommentIndex(index);
|
setPendingCommentIndex(index);
|
||||||
navigate(`/profile/c/${index}`);
|
navigate(`/profile/c/${index}`);
|
||||||
}
|
}
|
||||||
}, [index, navigate, setPendingCommentIndex]);
|
}, [index]);
|
||||||
|
|
||||||
|
|
||||||
const resetFields = () => {
|
const resetFields = () => {
|
||||||
@@ -248,7 +248,7 @@ const Board = () => {
|
|||||||
resetFields();
|
resetFields();
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
}, [publishCommentOptions, publishComment]);
|
}, [publishCommentOptions]);
|
||||||
|
|
||||||
|
|
||||||
const getChallengeAnswersFromUser = async (challenges) => {
|
const getChallengeAnswersFromUser = async (challenges) => {
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ const Catalog = () => {
|
|||||||
setPendingCommentIndex(index);
|
setPendingCommentIndex(index);
|
||||||
navigate(`/profile/c/${index}`);
|
navigate(`/profile/c/${index}`);
|
||||||
}
|
}
|
||||||
}, [index, navigate, setPendingCommentIndex]);
|
}, [index]);
|
||||||
|
|
||||||
|
|
||||||
const resetFields = () => {
|
const resetFields = () => {
|
||||||
@@ -174,7 +174,7 @@ const Catalog = () => {
|
|||||||
resetFields();
|
resetFields();
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
}, [publishCommentOptions, publishComment]);
|
}, [publishCommentOptions]);
|
||||||
|
|
||||||
|
|
||||||
const getChallengeAnswersFromUser = async (challenges) => {
|
const getChallengeAnswersFromUser = async (challenges) => {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ const Thread = () => {
|
|||||||
parentCids: [
|
parentCids: [
|
||||||
selectedThread || 'n/a', ...flattenedReplies.map(reply => reply.cid)
|
selectedThread || 'n/a', ...flattenedReplies.map(reply => reply.cid)
|
||||||
]
|
]
|
||||||
}), [flattenedReplies, selectedThread]);
|
}), [flattenedReplies]);
|
||||||
|
|
||||||
|
|
||||||
const { accountComments } = useAccountComments({filter});
|
const { accountComments } = useAccountComments({filter});
|
||||||
@@ -100,7 +100,7 @@ const Thread = () => {
|
|||||||
if (selectedSubplebbit) {
|
if (selectedSubplebbit) {
|
||||||
setSelectedTitle(selectedSubplebbit.title);
|
setSelectedTitle(selectedSubplebbit.title);
|
||||||
}
|
}
|
||||||
}, [subplebbitAddress, setSelectedAddress, setSelectedTitle, defaultSubplebbits, setSelectedThread, threadCid]);
|
}, [subplebbitAddress, setSelectedAddress, setSelectedTitle, defaultSubplebbits]);
|
||||||
|
|
||||||
// mobile navbar scroll effect
|
// mobile navbar scroll effect
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -167,7 +167,7 @@ const Thread = () => {
|
|||||||
if (index !== undefined) {
|
if (index !== undefined) {
|
||||||
setPendingCommentIndex(index);
|
setPendingCommentIndex(index);
|
||||||
}
|
}
|
||||||
}, [index, setPendingCommentIndex]);
|
}, [index]);
|
||||||
|
|
||||||
|
|
||||||
const resetFields = () => {
|
const resetFields = () => {
|
||||||
@@ -205,7 +205,7 @@ const Thread = () => {
|
|||||||
resetFields();
|
resetFields();
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
}, [publishCommentOptions, publishComment]);
|
}, [publishCommentOptions]);
|
||||||
|
|
||||||
|
|
||||||
const getChallengeAnswersFromUser = async (challenges) => {
|
const getChallengeAnswersFromUser = async (challenges) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user