Refactor useSettings hook, parse with zod schema
This commit is contained in:
@ -106,8 +106,7 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
|
||||
useWindowScroll = true,
|
||||
}, ref) => {
|
||||
const history = useHistory();
|
||||
const settings = useSettings();
|
||||
const autoloadMore = settings.get('autoloadMore');
|
||||
const { autoloadMore } = useSettings();
|
||||
|
||||
// Preserve scroll position
|
||||
const scrollDataKey = `soapbox:scrollData:${scrollKey}`;
|
||||
|
||||
Reference in New Issue
Block a user