Comments (2)
The hotloader was made for rails 5. In this version, sprockets created one .js per hyperstack/.rb file.
In rails 6 all files are merged in a single application.debug-.js file.
Every time a function name must be found at a specific line, application.debug-*.js is splitted on \n.
On my projet it does that >300 times.
from hyperstack.
When a .rb file is changed on disk, it is sent to the browser via websocket and it is compiled by opal with Opal.compile.
Another performance issue is due to the parsing of strings by opal/parser. It is very slow. Some files of my project can take 20 seconds to be compiled. I patched the hotloader in order to compile it server side and send the javascript result to the browser. The same file can be hotloaded in 0.3 seconds.
from hyperstack.
Related Issues (20)
- Organize hyper-model specs
- implement relationship create_association methods
- Hyperstack::I18n#t should also check non-namespaced translation
- hyperstack:install gives NoMethodError HOT 3
- Hyperstack doesn't work in production HOT 2
- a Native::Object in component params can't be retrieved HOT 1
- Hotloader is throwing a "file not found" error when I try to run `bundle exec foreman start` HOT 1
- Can't access components that are memoized symbols in React 17
- Access params in operations using accessors instead of the 'params' object.
- Hyperspec doc issues
- write typical react component and integrate with hyperstack HOT 3
- For validation, and doing server side computation must update all associated changed records
- Implement autoload flag on hyperstack models
- Interactions between Lolex, Timecop and the Cache in HyperSpec
- Hypermodel `after_commit` handler is dropping errors instead of raising
- won't run with latest puma
- don't transmit full record on change - only send changed values HOT 2
- ./spec/batch4/default_value_spec.rb:40 failing on latest react
- improve server_method and finder_method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyperstack.