File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ import { usePolybase, useDocument } from "@polybase/react";
41
41
export const Component = () => {
42
42
const polybase = usePolybase ();
43
43
const { data , error , loading } =
44
- useDocument <
45
- OptionalCustomType >
46
- polybase .collection (" users" ).record (" id" );
44
+ useDocument< OptionalCustomType> (polybase .collection (" users" ).record (" id" ));
47
45
48
46
return data .data .name ;
49
47
};
@@ -58,7 +56,7 @@ import { usePolybase, useCollection } from "@polybase/react";
58
56
export const Component = () => {
59
57
const polybase = usePolybase ();
60
58
const { data , error , loading } =
61
- useCollection < OptionalCustomType > polybase .collection (" users" );
59
+ useCollection< OptionalCustomType> ( polybase .collection (" users" ) );
62
60
63
61
const usersEl = map (data, ({ data }) => {
64
62
return < div key= {data .id }> {data .name }< / div> ;
You can’t perform that action at this time.
0 commit comments