Topics | Search Log Out | Register | Edit Profile
Hide Clipart | Banned/Unbanned User Log | Moderator Login History | Thread Delete/Move Log | Last 30 mins | 1 | 2
Any React Developers please - Need s...

Chalanachithram.com DB » New TF Industry Related » Archive through June 11, 2021 » Any React Developers please - Need small help « Previous Next »
Author Message
 

Nrules
Comedian
Username: Nrules

Post Number: 1097
Registered: 10-2012

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 08, 2021 - 09:07 am:       


Kadapanagfan:




Thanks bro.. will go through them.
 

Kadapanagfan
Legend
Username: Kadapanagfan

Post Number: 90848
Registered: 12-2006

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 08, 2021 - 08:41 am:       


Nrules:

So, in simple... i need this function should work on the page load itself... as new to React, i am not able to go through this. Help needed.




u have lifecycle methods in react JS...u shud have logic in componentmount life cycl methods....
https://reactjs.org/docs/react-component.html
 

Nrules
Comedian
Username: Nrules

Post Number: 1096
Registered: 10-2012

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 08, 2021 - 08:31 am:       

const onGridReady = (params) => {
setGridApi(params.api);
setGridColumnApi(params.columnApi);
dispatch(fetchInventoryData({ id: '12345' }))
.then(gridData=>{console.log(gridData)})
params.api.applyTransaction({add:gridData})
};

Used this code to fetch data with gridReady... while before a developer worked on this wrote that function with dropdown list (Dispatch(fetchInventoryData)) function. As the client requirement is.. on page load display grid data ... that developer done it with dropdown selection of customer. But, the customer id will go through the Login itself, hence his data must be fetched immediately on to the screen. This is the client requirement. I tried it by keeping it in the gridready() function... but that is making it flickering and not responding to the mouse functions and keyboard... but data is coming.

So, in simple... i need this function should work on the page load itself... as new to React, i am not able to go through this. Help needed.
 

Rgb
Side Hero
Username: Rgb

Post Number: 6176
Registered: 06-2014

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 08, 2021 - 08:19 am:       

Post issue. I have experience but not a expert. Small test case git lo post chesthe best
 

Kadapanagfan
Legend
Username: Kadapanagfan

Post Number: 90847
Registered: 12-2006

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 08, 2021 - 07:24 am:       

issue yenti???
 

Nrules
Comedian
Username: Nrules

Post Number: 1095
Registered: 10-2012

Rating: N/A
Votes: 0 (Vote!)

Posted on Tuesday, June 08, 2021 - 04:15 am:       

Evaraina React developers unte cheppandi. Nenu React ki kotha... client yemo react lone kaavaalani... freelance project... Almost complete chesaanu, but oka error baagaa time tinesthondi... need an expert advice to come out of it. Yevaraina mana DB lo vunte.. please ping me.

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x1770e78){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

  A   B   C   D   E   F   G   H   I   J   K   L   M  

N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: