Profile redesign: Persist filter setting (#38575)
This commit is contained in:
parent
71e6e50846
commit
f2f07404b5
@ -27,8 +27,8 @@ export const AccountTimelineProvider: FC<{
|
|||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}> = ({ accountId, children }) => {
|
}> = ({ accountId, children }) => {
|
||||||
const storageOptions = {
|
const storageOptions = {
|
||||||
type: 'session',
|
type: 'local',
|
||||||
prefix: `filters-${accountId}:`,
|
prefix: 'account-filters',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
const [boosts, setBoosts] = useStorageState<boolean>(
|
const [boosts, setBoosts] = useStorageState<boolean>(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user