Giter VIP home page Giter VIP logo

react-wasm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-wasm's Issues

useWasm hook

The 4th of february [email protected] will be released, and it will contains hooks: facebook/react#14692.
This means that we can develop a useWasm hook, as said in #1, a new alternative to the render prop and HoC. Maybe something like:

const { loading, error, data } = useWasm({
  url: '/add.wasm'
});

@mfrachet let me know if you are interested in developing this ๐Ÿ˜„

Reinstantiate wasm module on props change

The current implementation loads the module only on the initial mount of the component. We need to use a lifecycle method to detect props changes and reinstantiate it accordingly.

Expected 'application/wasm'

General Information

  • Bug
  • Improvement
  • Feature
  • [ X] Other

Description
TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

It seems like I cannot instantiate webassemby streaming and I do not know how to add the mime type to the server.

Versions

  • react:16.8.3
  • react-wasm: 1.01
  • browser: chrome Version 76.0.3809.132 (Official Build) (64-bit)
  • expo: ^34.0.1

Couldn't I just as easily handle this as actions of a flux application?

General Information

  • Bug
  • Improvement
  • Feature
  • [x ] Other: Chitchat

Description
I dig that you're sharing your interpretation and composition, is there any specific contextual reasoning that one wouldnt just stick their wasm in a projects flux actions, getting this as a composition agnostic abstraction?

(Add images if possible)
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.