stvkoch

stvkoch

Member Since 13 years ago

@worten.pt, Lisbon

Experience Points
63
follower
Lessons Completed
430
follow
Lessons Completed
657
stars
Best Reply Awards
144
repos

60 contributions in the last year

Pinned
⚡ WIP: My experiments to discovery best approach to work with new context API
⚡ Check digits (or characters) are a 'checksum' on a number to help prevent manual typing errors. Follow Norma ISO 7064 Mod 97-10. Usaded IBAN and NIB validation
⚡ Generate data types and resolvers from models of sequelizejs
⚡ Short example how to make app with React-Native+Redux+ReactRedux
⚡ Configuration and tips to turn you into a powerful user vim
⚡ This plugin help carrierwaves save files with same content in same place, but diferent records.
Activity
Nov
6
3 weeks ago
push

stvkoch push stvkoch/ISO7064-Mod-97-10

stvkoch
stvkoch
stvkoch
stvkoch

Merge pull request #1 from skoch-tf/patch-1

Update ISO7064Mod97_10.php

commit sha: da638a1afca7d00cb0f7dc219b3bbd8ab3361ecb

push time in 3 weeks ago
push

stvkoch push stvkoch/graphqlizejs

stvkoch
stvkoch

Bump elliptic from 6.5.2 to 6.5.3 (#18)

Bumps elliptic from 6.5.2 to 6.5.3.

Signed-off-by: dependabot[bot] [email protected]

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit sha: 9b1083c8175030100b0dbf832c7b37c650ab6e0e

push time in 3 weeks ago
pull request

stvkoch pull request stvkoch/graphqlizejs

stvkoch
stvkoch

Bump elliptic from 6.5.2 to 6.5.3

Bumps elliptic from 6.5.2 to 6.5.3.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

push

stvkoch push stvkoch/graphqlizejs

stvkoch
stvkoch

Bump object-path from 0.11.4 to 0.11.5 (#20)

Bumps object-path from 0.11.4 to 0.11.5.

Signed-off-by: dependabot[bot] [email protected]

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit sha: 0a61acfcd8d3837e0be4132e4e42e4b69ba9ede1

push time in 3 weeks ago
pull request

stvkoch pull request stvkoch/graphqlizejs

stvkoch
stvkoch

Bump object-path from 0.11.4 to 0.11.5

Bumps object-path from 0.11.4 to 0.11.5.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

started
started time in 3 weeks ago
Oct
26
1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
Oct
18
1 month ago
started
started time in 1 month ago
Oct
14
1 month ago
Activity icon
issue

stvkoch issue facebook/react

stvkoch
stvkoch

Bug: shows duplicate the last elements of an array stored useRef

I'm keeping the last values passed as props without force a re-render, I'm using the useRef to store the elements without re-render the output.

The weird part is that the values showed are different from what I'm storing, duplicating the last elements.

React version: 17.0.2 image

Link to code example:

https://codesandbox.io/s/stupefied-ride-m1did?file=/src/App.js

import React from "react";

const ComR = React.memo(function Compo({ id, value }) {
  const lastElements = React.useRef([0, 0, 0, 0, 0]);
  const [_, ...m] = lastElements.current; // remove first
  lastElements.current = [...m, value]; // insert last
  console.log("rendering", id, value, memo.current);
  return (
    <div>
      {id} - {lastElements.current.join(", ")}
    </div>
  );
});

export default function App() {
  const [value, setValue] = React.useState(0);

  React.useEffect(() => {
    setInterval(() => {
      setValue(Math.ceil(Math.random() * 10000));
    }, 7000);
  }, [setValue]);

  return (
    <div className="App">
      <ComR id="1" value={value} />
    </div>
  );
}

The current behavior

The console.log is showing different what is printing into the component

image

The expected behavior

expects work as linear array operations, since was called/rendered once

Sep
30
2 months ago
started
started time in 1 month ago
started
started time in 1 month ago
Sep
17
2 months ago
Activity icon
fork

stvkoch forked DODOEX/contractV2

⚡ Smart contracts for DODOEX V2
stvkoch Apache License 2.0 Updated
fork time in 2 months ago
Sep
13
2 months ago
Activity icon
issue

stvkoch issue stvkoch/copper

stvkoch
stvkoch

Create a skeleton webserver

Support minimal DDD design

Activity icon
issue

stvkoch issue stvkoch/copper

stvkoch
stvkoch

Create a skeleton webserver

Support minimal DDD design

Activity icon
issue

stvkoch issue stvkoch/copper

stvkoch
stvkoch

Implement Customer Domain functions

Activity icon
issue

stvkoch issue stvkoch/copper

stvkoch
stvkoch

Inject repository to domain layer instead access directly on function body

Activity icon
issue

stvkoch issue stvkoch/copper

stvkoch
stvkoch

Create tests form domain layer