hyperstack-org / hyperstack-org/hyperstack

Option to not put HyperstackOpts and ReactiveRecordPublicColumnsHash into HTML

Đang mở
#270 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
538
Fork
41
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I have a layout where I am rendering several different components, and each of them return the HyperstackOpts and the ReactiveRecordPublicColumns hash. For a large application, this adds a significant amount to the page that isn't even used, and can slow things down.

A case where this can actually be a problem, is with fragment caching. If caching a prerendered component, it would cache the csrf token in HyperstackOpts and cause that to be invalid and break the client.

I've managed to workaround this by `gsub`ing out that stuff, and manually rendering those in the layout outside of a cached component. But it would be nice to be able to specify not to return it with a prerendered component, and possibly have a helper method to render it somewhere else in the layout.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.