13x54n / sunya

This repo is deprecated and moved to the new url.
https://github.com/Sunya-Inc/sunya
MIT License
1 stars 0 forks source link

💀 Except passing props on Dashboard to Child Components State Management can be used #24

Open 13x54n opened 2 months ago

13x54n commented 2 months ago

Problem Statement Just to mind the DID I need a owner_address, just for that I'm passing the props to too many steps childs. I could do that but going rapid development for other features since Hackathon is about to wrap up.

Primitive Usage

export default function Router() {
const [wallet, setWallet] = useState(null);
// ...
<Navbar
wallet={wallet}
connectWallet={connectWallet}
setWallet={setWallet}/>
//...
<Dashboard wallet={wallet} />

Alternate Solution We need to implement useContext || Redux || Zustan, etc.

Additional context You'll know just goto Routers->Dashboard->SecurityAnalysis-> till you reach the Mind DID

Babuprasanth27 commented 2 months ago

@13x54n Hey, I am interested in fixing this issue. And provide me with a better description.