Skip to content

Commit

Permalink
enhance: provide a useDebugValue fallback for rax environment
Browse files Browse the repository at this point in the history
  • Loading branch information
awmleer committed Feb 19, 2021
1 parent 552d029 commit b3bf3ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reto",
"version": "0.9.2",
"version": "0.9.3-alpha.0",
"main": "index.js",
"repository": "https://github.com/awmleer/reto",
"description": "React store with hooks.",
Expand Down
4 changes: 3 additions & 1 deletion src/consumer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import * as React from 'react'
import {ReactNode, useContext, useDebugValue, useEffect, useRef, useState} from 'react'
import {ReactNode, useContext, useEffect, useRef, useState} from 'react'
import {ReactElement} from 'react'
import {Container} from './container'
import {NoStoreError} from './error'
import {defaultStoreValue, getStoreContext, Store, StoreV} from './store'

const useDebugValue = React.useDebugValue ?? (() => {})

type Deps<T> = (store: T) => unknown[]

interface Props<S extends Store> {
Expand Down

0 comments on commit b3bf3ee

Please sign in to comment.