Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Support BlockContext between different blocks #7

Merged
merged 11 commits into from
May 24, 2022
5 changes: 3 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ Feel free to inspect the code, open issues, submit PRs, ask questions...
- [x] Reuse the same RichText component across the different environments (Edit, Save, and Frontend) – [PR](https://github.com/WordPress/block-hydration-experiments/pull/2)
- [x] Support useState and useEffect hook in the Save component to be able to reuse the same component in the Frontend – [PR](https://github.com/WordPress/block-hydration-experiments/pull/3)
- [x] Implement different hydration techniques: Idle, View, Media – [PR](https://github.com/WordPress/block-hydration-experiments/pull/14)
- [x] Support the BlockContext between different blocks – [PR](https://github.com/WordPress/block-hydration-experiments/pull/7)

### Up next

- [ ] Support for Block Supports (wrapper only) – [PR in progress](https://github.com/WordPress/block-hydration-experiments/pull/3)
- [ ] Support the BlockContext between different blocks – [PR in progress](https://github.com/WordPress/block-hydration-experiments/pull/7)
- [ ] Support “static” (not hydrated) BlockContext parents
- [ ] Support "static" (not hydrated) BlockContext parents.
- [ ] Support dynamic Block contexts.
- [ ] Support for the Context API between different blocks.
- [ ] Support attribute sourcing.
- [ ] Make sure Frontend components are automatically hydrated even if their component is registered after the connectedCallback execution.
Expand Down
6 changes: 3 additions & 3 deletions block-hydration-experiments.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: block-hydration-experiments
*/

function block_hydration_experiments_init() {
register_block_type( __DIR__ . '/build' );
register_block_type( plugin_dir_path( __FILE__ ) . 'build/blocks/block-hydration-experiments-child/' );
register_block_type( plugin_dir_path( __FILE__ ) . 'build/blocks/block-hydration-experiments-parent/' );
}
add_action( 'init', 'block_hydration_experiments_init' );
add_action( 'init', 'block_hydration_experiments_init' );
Loading