我运行以下命令:
const SignedIn = ({signOut}) => {
const auth = useSelector(state => state.firebase.auth, []);
return (
<Menu.Item position='right'>
<Image avatar spaced='right' src={profile.photoURL} />
<Dropdown text="My profile">
<Dropdown.Menu>
// this is where the SignedIn component is called:
<Dropdown.Item as={Link} to={`/profile/${auth.uid}`} text='Profile'/>
<Dropdown.Item onClick={signOut} text='Sign Out'/>
</Dropdown.Menu>
</Dropdown>
</Menu.Item>
);
};
我明白了
const UserDetailed = ({match: {params}}) => {
const firebase = useFirebase();
const isCurrentUser = firebase.auth().currentUser.uid === params.id;
console.log(isCurrentUser);
const getUserProfile= useMemo(() => ({
collection: 'users',
doc: params.id,
storeAs: 'userProfile'
}), [params.id]);
console.log(getUserProfile);
useFirestoreConnect(getUserProfile); //get datas from here
return (
<div></div>
);
};
export default UserDetailed;
我不能用Fabric core吗?
答案 0 :(得分:1)
简短的回答是“否”。 Connection.put
在Transfer.put
附近just a wrapper,并且Transfer.put
only has three parameters:(1)local
,(2)remote
和(3 )preserve_mode
。