feat: allow block.block_data similar to page.page_data#534
Merged
surajshetty3416 merged 2 commits intofrappe:developfrom Mar 27, 2026
Merged
feat: allow block.block_data similar to page.page_data#534surajshetty3416 merged 2 commits intofrappe:developfrom
surajshetty3416 merged 2 commits intofrappe:developfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #534 +/- ##
========================================
Coverage 63.52% 63.52%
========================================
Files 27 27
Lines 2794 2794
========================================
Hits 1775 1775
Misses 1019 1019 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
@stravo1 Linter is failing. Can you setup & run your pre-commit and push changes? |
surajshetty3416
approved these changes
Mar 27, 2026
|
🎉 This PR is included in version 1.23.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pass data from block data script to block client script directly using
block.block_datakeyword similar to howdata.page_dataworks. In block client script that data is accessible viablock_data.Previously the only way to pass block data to the client side (client script JS) was through dynamic props - that too the data had to come from previous blocks. However it was a "hacky" and clumsy process. This highly simplifies the process of passing data between server (block data script) and client (block client script).
Before:
Screen.Recording.2026-03-26.at.11.52.31.PM.mp4
After:
Screen.Recording.2026-03-27.at.12.02.28.AM.mp4