github
1388 of 2837 branches covered (48.92%)
25 of 1927 new or added lines in 39 files covered. (1.3%)
1 existing line in 1 file now uncovered.14099 of 81259 relevant lines covered (17.35%)
1.72 hits per line
NEW
|
import { useContext, useMemo } from 'react'; |
|
NEW
|
import { QueryEditorContext } from '../context/QueryEditorContext'; |
× |
NEW
|
|
× |
NEW
|
export const useAllColumns = () => { |
× |
NEW
|
const context = useContext(QueryEditorContext);
|
× |
NEW
|
|
× |
NEW
|
return useMemo(
|
× |
NEW
|
() => context.columns.from.concat(context.columns.join), |
× |
NEW
|
[context.columns.from, context.columns.join] |
× |
NEW
|
); |
× |
NEW
|
}; |
× |