Draft
Conversation
- blocks which can be partially rendered are named Tiles (subject to change) - AlpineJS is now bundled (if opted for or if page contains Tiles) - Tiles for a page are saved upon preview or publish, NOT every time that page is saved - a Tile can be rendered by making a POST request to the same URL as the page and providing the block_id, block_data and props or simply using the refreshTile function
a lightweight Alpine-based reactive library for managing global state across scripts.
API:
set(key, value)
$reactive.set('count', 1)
$reactive.set('user', { name: "A" })
get(key)
const count = $reactive.get('count')
update(key, updater, options?)
$reactive.update('count', c => (c || 0) + 1)
$reactive.update('user', { name: "B" })
$reactive.update('count', 10)
$reactive.update('count', c => c, { skipEqual: true })
watch(key, callback)
$reactive.watch('count', (val, old) => {
console.log(old, '→', val)
})
effect(fn)
$reactive.effect(() => {
console.log($reactive.get('count'))
})
delete(key)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #548 +/- ##
===========================================
- Coverage 63.49% 57.47% -6.02%
===========================================
Files 27 29 +2
Lines 2802 3158 +356
===========================================
+ Hits 1779 1815 +36
- Misses 1023 1343 +320 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
No description provided.