pull/10408/head
Rich Harris 3 years ago
parent e5c6299428
commit 8d24e40a65

@ -170,6 +170,9 @@ export function createEventDispatcher() {
* @returns {void} * @returns {void}
*/ */
export function beforeUpdate(fn) { export function beforeUpdate(fn) {
// TODO this shouldn't be necessary but is, because of the tests
if (is_ssr) return;
const context = current_component_context; const context = current_component_context;
if (context === null) { if (context === null) {
@ -210,6 +213,9 @@ export function beforeUpdate(fn) {
* @returns {void} * @returns {void}
*/ */
export function afterUpdate(fn) { export function afterUpdate(fn) {
// TODO this shouldn't be necessary but is, because of the tests
if (is_ssr) return;
const context = current_component_context; const context = current_component_context;
if (context === null) { if (context === null) {

Loading…
Cancel
Save