hyperstack-org / hyperstack-org/hyperstack
Option to not put HyperstackOpts and ReactiveRecordPublicColumnsHash into HTML
- 主要語言
- JavaScript
- 星號
- 538
- 分支
- 41
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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.
貢獻指南
評估
這個 Issue 還沒有評估資料。