Migrate record table to scope map (#3363)
* Migrate record table to scope map * Update record scope id to record id * Remove todos and fix edit mode * Fix perf * Fix tests * Fix tests --------- Co-authored-by: Thomas Trompette <thomast@twenty.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -36,7 +36,7 @@ export const TabList = ({ tabs, tabListId }: TabListProps) => {
|
||||
|
||||
const { activeTabIdState, setActiveTabId } = useTabList(tabListId);
|
||||
|
||||
const activeTabId = useRecoilValue(activeTabIdState);
|
||||
const activeTabId = useRecoilValue(activeTabIdState());
|
||||
|
||||
React.useEffect(() => {
|
||||
setActiveTabId(initialActiveTabId);
|
||||
|
||||
@ -7,7 +7,7 @@ export const useTabList = (tabListId?: string) => {
|
||||
tabListScopeId: `${tabListId}-scope`,
|
||||
});
|
||||
|
||||
const setActiveTabId = useSetRecoilState(activeTabIdState);
|
||||
const setActiveTabId = useSetRecoilState(activeTabIdState());
|
||||
|
||||
return {
|
||||
activeTabIdState,
|
||||
|
||||
Reference in New Issue
Block a user