TypeError:put()得到了意外的关键字参数'use_sudo'

时间:2019-12-02 15:23:47

标签: python fabric

我运行以下命令:

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吗?

1 个答案:

答案 0 :(得分:1)

简短的回答是“否”。 Connection.putTransfer.put附近just a wrapper,并且Transfer.put only has three parameters:(1)local,(2)remote和(3 )preserve_mode