DEV Community

Discussion on: Am I the only one seeing possibilities with React Nil?

Collapse
 
saisandeepvaddi profile image
Sai Sandeep Vaddi

One use-case I could see myself using is it in browser extension background scripts.

I'd hate to write setIntervals to get latest data in background script and caching is a pain. If I use react-nil, I guess can use data fetching hooks like swr, react-query and push data to popups and tabs etc. Also if I ever have graphql api, react hooks are far easier to pull data from GraphQL API instead of sending post requests or graphql-request.

Collapse
 
stereoplegic profile image
Mike Bybee

Very cool use case!