Skip to content

Commit

Permalink
update readme, try for react 19
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Jul 15, 2024
1 parent ba195da commit b1698a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# React Konva

[![Build Status](https://travis-ci.org/konvajs/react-konva.svg?branch=master)](https://travis-ci.org/konvajs/react-konva) [![Greenkeeper badge](https://badges.greenkeeper.io/konvajs/react-konva.svg)](https://greenkeeper.io/)
[![Financial Contributors on Open Collective](https://opencollective.com/konva/all/badge.svg?label=financial+contributors)](https://opencollective.com/konva)
[![npm version](https://badge.fury.io/js/react-konva.svg)](http://badge.fury.io/js/react-konva)
[![Build Status](https://github.com/konvajs/react-konva/actions/workflows/test.yml/badge.svg)](https://github.com/konvajs/react-konva/actions/workflows/test.ym)

![ReactKonva Logo](https://cloud.githubusercontent.com/assets/1443320/12193428/3bda2fcc-b623-11e5-8319-b1ccfc95eaec.png)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"license": "MIT",
"name": "react-konva",
"description": "React binding to canvas element via Konva framework",
"version": "19.0.0",
"version": "19.0.0-0",
"keywords": [
"react",
"canvas",
Expand Down
12 changes: 4 additions & 8 deletions src/ReactKonvaHostConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export {
unstable_runWithPriority as run,
} from 'scheduler';
import {
NoEventPriority,
// NoEventPriority,
DefaultEventPriority,
} from 'react-reconciler/constants.js';

Expand All @@ -21,7 +21,8 @@ const UPDATE_SIGNAL = {};
// for react-spring capability
(Konva.Node.prototype as any)._applyProps = applyNodeProps;

let currentUpdatePriority: number = NoEventPriority;
// let currentUpdatePriority: number = NoEventPriority;
let currentUpdatePriority: number = DefaultEventPriority;

export function appendInitialChild(parentInstance, child) {
if (typeof child === 'string') {
Expand Down Expand Up @@ -191,12 +192,7 @@ export function commitMount(instance, type, newProps) {
// Noop
}

export function commitUpdate(
instance,
type,
oldProps,
newProps
) {
export function commitUpdate(instance, type, oldProps, newProps) {
applyNodeProps(instance, newProps, oldProps);
}

Expand Down

0 comments on commit b1698a1

Please sign in to comment.