Reloading Children Upon Database Change with React2019 Community Moderator ElectionHow does database indexing work?How do I quickly rename a MySQL database (change schema name)?How to list the tables in a SQLite database file that was opened with ATTACH?How do I unload (reload) a Python module?How do I reload .bashrc without logging out and back in?What are the options for storing hierarchical data in a relational database?Loop inside React JSXProgrammatically navigate using react routerstate is null after setting state in reactHow get value datapicker in react toobox custom?

(Codewars) Linked Lists-Sorted Insert

What is this tube in a jet engine's air intake?

What would be the most expensive material to an intergalactic society?

Are small insurances worth it?

How should I solve this integral with changing parameters?

Movie: boy escapes the real world and goes to a fantasy world with big furry trolls

I am the person who abides by rules, but breaks the rules. Who am I?

How do spaceships determine each other's mass in space?

Having the player face themselves after the mid-game

What happened to the colonial estates belonging to loyalists after the American Revolution?

How do I raise a figure (placed with wrapfig) to be flush with the top of a paragraph?

Smooth vector fields on a surface modulo diffeomorphisms

What is Tony Stark injecting into himself in Iron Man 3?

Professor forcing me to attend a conference, I can't afford even with 50% funding

Is it appropriate to ask a former professor to order a book for me through an inter-library loan?

How do you make a gun that shoots melee weapons and/or swords?

Why restrict private health insurance?

How to copy the rest of lines of a file to another file

Why is there an extra space when I type "ls" on the Desktop?

Are E natural minor and B harmonic minor related?

Logistic regression BIC: what's the right N?

If nine coins are tossed, what is the probability that the number of heads is even?

Too soon for a plot twist?

Sampling from Gaussian mixture models, when are the sampled data independent?



Reloading Children Upon Database Change with React



2019 Community Moderator ElectionHow does database indexing work?How do I quickly rename a MySQL database (change schema name)?How to list the tables in a SQLite database file that was opened with ATTACH?How do I unload (reload) a Python module?How do I reload .bashrc without logging out and back in?What are the options for storing hierarchical data in a relational database?Loop inside React JSXProgrammatically navigate using react routerstate is null after setting state in reactHow get value datapicker in react toobox custom?










1















I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image:
Component Layout Example.



I have three components contained in one larger component called Contact. The first component within Contact sits on top and is called SendAMessage, then there are two sitting underneath it called LeaveAComment and FetchComments (called CommentList in the image, but FetchComments in the actual code); LeaveAComment and FetchComments are both next to each other.



Right now FetchComments displays all comments contained in the database and LeaveAComment adds to the database. The problem is that the FetchComments component does not display any new comments that are created by the LeaveAComment component unless the tab is refreshed or navigated away from. I need help with trying to figure out a way to reload the displayed comment list contained in FetchComments with every database update. Or if there is a way to reload the FetchComments children from the 'Submit' button on LeaveAComment.



So far I understand that a parent component may pass props to a child component, but not necessarily the other way around; since LeaveAComment and FetchAComment are siblings, I am not sure what to do. Any help would be much appreciated. Here is the code I have so far:






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);









export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);













share|improve this question






















  • You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

    – SAP
    Mar 7 at 0:14











  • Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

    – Amy Dixon
    Mar 7 at 1:50











  • This may help you to get started medium.com/@supunbhagya/…

    – SAP
    2 days ago















1















I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image:
Component Layout Example.



I have three components contained in one larger component called Contact. The first component within Contact sits on top and is called SendAMessage, then there are two sitting underneath it called LeaveAComment and FetchComments (called CommentList in the image, but FetchComments in the actual code); LeaveAComment and FetchComments are both next to each other.



Right now FetchComments displays all comments contained in the database and LeaveAComment adds to the database. The problem is that the FetchComments component does not display any new comments that are created by the LeaveAComment component unless the tab is refreshed or navigated away from. I need help with trying to figure out a way to reload the displayed comment list contained in FetchComments with every database update. Or if there is a way to reload the FetchComments children from the 'Submit' button on LeaveAComment.



So far I understand that a parent component may pass props to a child component, but not necessarily the other way around; since LeaveAComment and FetchAComment are siblings, I am not sure what to do. Any help would be much appreciated. Here is the code I have so far:






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);









export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);













share|improve this question






















  • You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

    – SAP
    Mar 7 at 0:14











  • Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

    – Amy Dixon
    Mar 7 at 1:50











  • This may help you to get started medium.com/@supunbhagya/…

    – SAP
    2 days ago













1












1








1








I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image:
Component Layout Example.



I have three components contained in one larger component called Contact. The first component within Contact sits on top and is called SendAMessage, then there are two sitting underneath it called LeaveAComment and FetchComments (called CommentList in the image, but FetchComments in the actual code); LeaveAComment and FetchComments are both next to each other.



Right now FetchComments displays all comments contained in the database and LeaveAComment adds to the database. The problem is that the FetchComments component does not display any new comments that are created by the LeaveAComment component unless the tab is refreshed or navigated away from. I need help with trying to figure out a way to reload the displayed comment list contained in FetchComments with every database update. Or if there is a way to reload the FetchComments children from the 'Submit' button on LeaveAComment.



So far I understand that a parent component may pass props to a child component, but not necessarily the other way around; since LeaveAComment and FetchAComment are siblings, I am not sure what to do. Any help would be much appreciated. Here is the code I have so far:






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);









export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);













share|improve this question














I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image:
Component Layout Example.



I have three components contained in one larger component called Contact. The first component within Contact sits on top and is called SendAMessage, then there are two sitting underneath it called LeaveAComment and FetchComments (called CommentList in the image, but FetchComments in the actual code); LeaveAComment and FetchComments are both next to each other.



Right now FetchComments displays all comments contained in the database and LeaveAComment adds to the database. The problem is that the FetchComments component does not display any new comments that are created by the LeaveAComment component unless the tab is refreshed or navigated away from. I need help with trying to figure out a way to reload the displayed comment list contained in FetchComments with every database update. Or if there is a way to reload the FetchComments children from the 'Submit' button on LeaveAComment.



So far I understand that a parent component may pass props to a child component, but not necessarily the other way around; since LeaveAComment and FetchAComment are siblings, I am not sure what to do. Any help would be much appreciated. Here is the code I have so far:






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);









export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);









export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);






export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);






export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);







sql database reactjs components reload






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 at 22:23









Amy DixonAmy Dixon

134




134












  • You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

    – SAP
    Mar 7 at 0:14











  • Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

    – Amy Dixon
    Mar 7 at 1:50











  • This may help you to get started medium.com/@supunbhagya/…

    – SAP
    2 days ago

















  • You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

    – SAP
    Mar 7 at 0:14











  • Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

    – Amy Dixon
    Mar 7 at 1:50











  • This may help you to get started medium.com/@supunbhagya/…

    – SAP
    2 days ago
















You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

– SAP
Mar 7 at 0:14





You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

– SAP
Mar 7 at 0:14













Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

– Amy Dixon
Mar 7 at 1:50





Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

– Amy Dixon
Mar 7 at 1:50













This may help you to get started medium.com/@supunbhagya/…

– SAP
2 days ago





This may help you to get started medium.com/@supunbhagya/…

– SAP
2 days ago












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033135%2freloading-children-upon-database-change-with-react%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033135%2freloading-children-upon-database-change-with-react%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page

Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices