ucdavis / tacos

Teaching Assistant Calculated Outcome System
MIT License
0 stars 0 forks source link

Nf-request deletion re-rendering issue #100

Closed NabilFurmoli closed 5 years ago

NabilFurmoli commented 5 years ago

on focusRequest() method I simply changed the setTimeout Interval from 3 sec to 0.5 seconds. it turns out that deletion in that time interval adds the deleted request back to requests state. which lets to rerendering. this is a possible solution. and I think its because when a request is created the focusRequest() is being called, now focusRequest() calls requestupdated() after 3 seconds, so if we remove a request, its being rendered back by focusRequest().