0.0.3 • Published 2 years ago

solid-create-effect-development v0.0.3

Weekly downloads
-
License
GPL
Repository
github
Last release
2 years ago

Solid Create Effect Development

Detects possible recursion on createEffect for SolidJS.

A Solid tool. See https://www.solidjs.com/

Usage

import createEffect from 'solid-create-effect-development'

createEffect(() => {
	/*...*/
})

Install

npm install solid-create-effect-development

How it works?

It counts how many times the callback ran before the next microtask. If it did more than 1000 times then it displays an error with the string of the callback.

Caveats

If the recursion is async(the next call comes after a microtask), then it wont be detected.

Author

URL

0.0.3

2 years ago

0.0.2

2 years ago