News for hackers. Stuff that matters.
Re:React Fiber Architecture by acdlite on Sunday August 07, 2016 @05:24PM (#12243731)
I believe the idea is to expose as little of the prioritization details as possible. E.g. updates triggered by a text input's change event will automatically receive higher priority. Or a DOM element with display: none will automatically receive lower priority. Etc.
Re:React Fiber Architecture by Bahamut on Sunday August 07, 2016 @07:01PM (#12244223)
The proposal doesn't sound like that was what was intended - it seems like it is left to the user to implement the fibers, with the work priority to be set by the user somehow. Indeed, a quick glimpse of the commits of the implementation reveals a priority system of values exposed directly to the user when creating components (see unit tests).
Re:React Fiber Architecture by spicyj on Sunday August 07, 2016 @07:14PM (#12244283)
acdlite is correct here -- most users won't need to worry about priorities and it's unclear to what extent we'll even expose them. The unit tests do not describe a public API (and we're not close to settling on one).
Re:React Fiber Architecture by Bahamut on Monday August 08, 2016 @02:55AM (#12245876)
Thanks for the clarification! I've been flying 16 hours today (Milan to SF), so I'm sure I didn't grasp the full significance of the concepts in the doc.