aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

One Time Binding

Open neerajbharti opened this issue 8 years ago • 2 comments

Add support for one time binding, such that once the binding has been evaluated and set, it does not take part in future refreshes of the component. This will be helpful in gaining some performance where we know that some of the data is not going to change during the life cycle of the component. For example some json content fetched from server which needs to be rendered in a table and we know this data will not change for very long time.

neerajbharti avatar May 11 '18 04:05 neerajbharti

The approach we're using is that components are the unit of re-rendering. So if there's part of a component you only want to be rendered once, you can factor that out into a child component. The child component will only get re-rendered when its parameter values change.

SteveSandersonMS avatar May 11 '18 21:05 SteveSandersonMS

Thank you for reply Steve

On Sat, May 12, 2018 at 3:20 AM, Steve Sanderson [email protected] wrote:

The approach we're using is that components are the unit of re-rendering. So if there's part of a component you only want to be rendered once, you can factor that out into a child component. The child component will only get re-rendered when its parameter values change.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aspnet/Blazor/issues/816#issuecomment-388494627, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnwPxtP2A-b7L-g8MBJW2jfsSmpGNMLks5txgeYgaJpZM4T65PG .

neerajbharti avatar May 12 '18 04:05 neerajbharti