Giter Club home page Giter Club logo

crio's People

Contributors

dependabot[bot] avatar jorrit avatar planttheidea avatar tquetano-r7 avatar

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  avatar  avatar

crio's Issues

crio array push is not a function

Hey, I am trying to push new value to crio array, and it throws.

const foo = crio(['foo']);
const fooBar = foo.push('bar');
console.log('foo', fooBar);

TypeError: foo.push is not a function

Crio and React - Array Map

It seems that when using Crio with React and you have an array of objects and try to do a simple iteration crio fails with error (see below).

Adding a .thaw().map() instead fixes the problem so it is probably something related to how React interacts with Crio during the map.

screen shot 2016-07-10 at 15 45 45

Unexpected CrioArray.set behavior when using with webpack

Hi!

I'm having this behavior I don't quite understand.

Steps to reproduce

  • yarn init
  • yarn add crio webpack webpack-cli
  • copy the code below
  • yarn webpack
  • open the index.html in a web browser

Code

index.js

import crio from 'crio';

const array = crio(['foo', 'bar']);

console.log(array);
console.log(array.set(1, 'cox'));

webpack.config.js

module.exports = {
  mode: process.env.NODE_ENV || 'development',
  entry: './index.js',
  output: { filename: 'bundle.js' },
};

index.html

<!DOCTYPE html>
<html>
  <head></head>
  <body><script type="text/javascript" src="dist/bundle.js"></script></body>
</html>

Expected output

["foo", "bar"]
["foo", "cox"]

Actual output

["foo", "bar"]
[null, "cox"]

Extra information

This code works as expected when I don't use webpack (load crio in the HTML and replace the bundle with the code from index.js using const crio = window.crio.default).

software version
node 8.11.1
webpack 4.15.1
webpack-cli 3.0.8
crio 5.0.1

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.