Giter VIP home page Giter VIP logo

Comments (9)

TacticCoder avatar TacticCoder commented on July 22, 2024

Hey,
can you please attach your code and the Tech stack?

from react-native-draganddrop-board.

tomasiturralde avatar tomasiturralde commented on July 22, 2024

Hi, i'm having the same issue as blindvalentine. I'm using the basic example given on the readme, and my react native version is 0.62.2. Is there anything i'm missing that should be added to the basic example to make it work?

Edit to add: from what i've been testing, the problem seems to be (at least in my case) with using a state hook. I commented every piece of code besides the basic example, and then uncommented piece by piece to see what was generating the error. The result i arrived to was that when i call the setter method for the state hook, something is happening that is breaking the board. For reference this is the code that, when fully uncommented, break the board and generates the error shown on the original post (at least in my case, that is what generates this).
image

Second edit: I tried using a class instead of a functional component, same result, when i call setState, that makes the board break

from react-native-draganddrop-board.

ariesbrylle-bms avatar ariesbrylle-bms commented on July 22, 2024

Same issue here.

from react-native-draganddrop-board.

ariesbrylle-bms avatar ariesbrylle-bms commented on July 22, 2024

I was able to solve the problem. The problem occurs once the board is loaded then an update in the data happens.

Here's how I updated my data.

`
useEffect(() => {
boardRepository.updateData(boardData);
}, [boardData]);

let boardRepository = new BoardRepository([]);
`

from react-native-draganddrop-board.

TacticCoder avatar TacticCoder commented on July 22, 2024

Great job, this method is partly mentioned in the readme. Closed for now.

from react-native-draganddrop-board.

ariesbrylle-bms avatar ariesbrylle-bms commented on July 22, 2024

Re-opening this issue. When I fixed the problem, this problem occurs -- #28

from react-native-draganddrop-board.

ariesbrylle-bms avatar ariesbrylle-bms commented on July 22, 2024

Were you able to fix the issue @tomasiturralde @blindvalentine ?

from react-native-draganddrop-board.

ariesbrylle-bms avatar ariesbrylle-bms commented on July 22, 2024

image

from react-native-draganddrop-board.

Luke-Mueller avatar Luke-Mueller commented on July 22, 2024

Has anyone seen any progress on this issue?

from react-native-draganddrop-board.

Related Issues (20)

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.