index.js?ver=2e2b78de4a8a9e8f1ec023c58f617ba6:17 Uncaught TypeError: Cannot read property 'my_block_meta' of undefined
at index.js?ver=2e2b78de4a8a9e8f1ec023c58f617ba6:17
at Array.reduce (<anonymous>)
at index.js?ver=2e2b78de4a8a9e8f1ec023c58f617ba6:17
at mountMemo (react-dom.8b3dda97.js:15807)
at Object.useMemo (react-dom.8b3dda97.js:16029)
at useMemo (react.eef5f5a3.js:1680)
at index.js?ver=2e2b78de4a8a9e8f1ec023c58f617ba6:17
at WithMetaAttributeSource((Component)) (index.js?ver=2e2b78de4a8a9e8f1ec023c58f617ba6:17)
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
function linear(t) { return t }; | |
function easeInQuad(t) { return t*t }; | |
function easeOutQuad(t) { return t*(2-t) }; | |
function easeInOutQuad(t) { return t<.5 ? 2*t*t : -1+(4-2*t)*t }; | |
function easeInCubic(t) { return t*t*t }; | |
function easeOutCubic(t) { return (--t)*t*t+1 }; | |
function easeInOutCubic(t) { return t<.5 ? 4*t*t*t : (t-1)*(2*t-2)*(2*t-2)+1 }; | |
function easeInQuart(t) { return t*t*t*t }; | |
function easeOutQuart(t) { return 1-(--t)*t*t*t }; | |
function easeInOutQuart(t) { return t<.5 ? 8*t*t*t*t : 1-8*(--t)*t*t*t }; |
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
( function( blocks, element ) { | |
var el = element.createElement, | |
registerBlockType = blocks.registerBlockType; | |
registerBlockType( 'gutenberg-test/block', { | |
title: 'Gutenberg test block', | |
icon: 'megaphone', | |
category: 'widgets', |
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
<?php | |
/** | |
* Plugin Name: Gutenberg Test | |
* Description: Gutenberg Test | |
* Version: 0.0.0 | |
*/ | |
function gutenberg_test_register_meta() { | |
register_meta( 'post', 'my_block_meta', array( |
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
export const onScrollRAF = ( callback ) => { | |
let scrollY = window.pageYOffset; | |
let lastScrollY = -1; | |
let frameRendered = false; | |
window.addEventListener( 'scroll', () => { | |
scrollY = window.pageYOffset; | |
frameRendered = false; | |
} ); |
OlderNewer